This file is indexed.

/usr/lib/python2.7/dist-packages/chameleon/tests/inputs/018-translation-nested-dynamic.pt.py is in python-chameleon 2.16-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# -*- coding: utf-8 -*-
pass
from chameleon.utils import Placeholder as _Placeholder
import sys as _sys
from chameleon.utils import DebuggingOutputStream as _DebuggingOutputStream
pass
_static_38400080 = {u'xmlns': u'http://www.w3.org/1999/xhtml', }
_marker_default = _Placeholder()
import re
import functools
_marker = object()
g_re_amp = re.compile('&(?!([A-Za-z]+|#[0-9]+);)')
g_re_needs_escape = re.compile('[&<>\\"\\\']').search
re_whitespace = functools.partial(re.compile('\\s+').sub, ' ')

def render(stream, econtext, rcontext):
    append = stream.append
    getitem = econtext.__getitem__
    get = econtext.get
    _i18n_domain = None
    re_amp = g_re_amp
    re_needs_escape = g_re_needs_escape
    decode = getitem('decode')
    convert = getitem('convert')
    translate = getitem('translate')
    _backup_attrs_37147352 = get('attrs', _marker)

    # <Static value=<_ast.Dict object at 0x249f050> name=None at 249f250> -> _value
    _value = _static_38400080
    econtext['attrs'] = _value

    # <div ... (1:0)
    # --------------------------------------------------------
    append(u'<div')
    _attr_xmlns = u'http://www.w3.org/1999/xhtml'
    if (_attr_xmlns is not None):
        append((u' xmlns="%s"' % _attr_xmlns))
    append(u'>')
    _content_139955154988272 = u'\n  '
    if (_content_139955154988272 is not None):
        append(_content_139955154988272)
    _stream_35214320_year = ''
    _stream_35214320_monthname = ''
    _stream_38401104 = _DebuggingOutputStream()
    _append_38401104 = _stream_38401104.append
    _content_139955154988272 = u'\n      '
    if (_content_139955154988272 is not None):
        _append_38401104(_content_139955154988272)
    _stream_35214320_monthname = _DebuggingOutputStream()
    _append_35214320_monthname = _stream_35214320_monthname.append
    _backup_default_38434648 = get('default', _marker)

    # <Marker name='default' at 24ca150> -> _value
    _value = _marker_default
    econtext['default'] = _value

    # <Expression u"'october'" (6:25)> -> _cache_38577296
    try:
        _cache_38577296 = 'october'
    except:
        rcontext.setdefault('__error__', []).append((u"'october'", 6, 25, '<string>', _sys.exc_info()[1], ))
        raise


    # <Identity expression=<Expression u"'october'" (6:25)> value=<Marker name='default' at 24ca410> at 24ca510> -> _condition
    _expression = _cache_38577296

    # <Marker name='default' at 24ca410> -> _value
    _value = _marker_default
    _condition = (_expression is _value)
    if _condition:
        _content_139955154988272 = u'monthname'
        if (_content_139955154988272 is not None):
            _append_35214320_monthname(_content_139955154988272)
    else:
        _content = _cache_38577296
        _content = translate(_content, default=None, domain=_i18n_domain)
        if (_content is not None):
            _append_35214320_monthname(_content)
    if (_backup_default_38434648 is _marker):
        del econtext['default']
    else:
        econtext['default'] = _backup_default_38434648
    _append_38401104(u'${monthname}')
    _stream_35214320_monthname = ''.join(_stream_35214320_monthname)
    _content_139955154988272 = u'\n      '
    if (_content_139955154988272 is not None):
        _append_38401104(_content_139955154988272)
    _stream_35214320_year = _DebuggingOutputStream()
    _append_35214320_year = _stream_35214320_year.append
    _backup_default_38436304 = get('default', _marker)

    # <Marker name='default' at 24ca050> -> _value
    _value = _marker_default
    econtext['default'] = _value

    # <Expression u'1982' (10:25)> -> _cache_38577872
    try:
        _cache_38577872 = 1982
    except:
        rcontext.setdefault('__error__', []).append((u'1982', 10, 25, '<string>', _sys.exc_info()[1], ))
        raise


    # <Identity expression=<Expression u'1982' (10:25)> value=<Marker name='default' at 24caa10> at 24cacd0> -> _condition
    _expression = _cache_38577872

    # <Marker name='default' at 24caa10> -> _value
    _value = _marker_default
    _condition = (_expression is _value)
    if _condition:
        _content_139955154988272 = u'year'
        if (_content_139955154988272 is not None):
            _append_35214320_year(_content_139955154988272)
    else:
        _content = _cache_38577872
        _content = translate(_content, default=None, domain=_i18n_domain)
        if (_content is not None):
            _append_35214320_year(_content)
    if (_backup_default_38436304 is _marker):
        del econtext['default']
    else:
        econtext['default'] = _backup_default_38436304
    _append_38401104(u'${year}')
    _stream_35214320_year = ''.join(_stream_35214320_year)
    _content_139955154988272 = u'\n  '
    if (_content_139955154988272 is not None):
        _append_38401104(_content_139955154988272)
    _msgid_38401104 = re_whitespace(''.join(_stream_38401104)).strip()
    append(translate(_msgid_38401104, mapping={u'monthname': _stream_35214320_monthname, u'year': _stream_35214320_year, }, default=_msgid_38401104, domain=_i18n_domain))
    _content_139955154988272 = u'\n'
    if (_content_139955154988272 is not None):
        append(_content_139955154988272)
    append(u'</div>')
    if (_backup_attrs_37147352 is _marker):
        del econtext['attrs']
    else:
        econtext['attrs'] = _backup_attrs_37147352
    _content_139955154988272 = u'\n'
    if (_content_139955154988272 is not None):
        append(_content_139955154988272)
pass