/usr/lib/python3/dist-packages/pyramid_jinja2/scaffolds/__init__.py is in python3-pyramid-jinja2 2.7+dfsg-1.
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 | try: # pragma: no cover (pyramid 1.0.X)
# "pyramid.paster.paste_script_template_renderer" doesn't exist past 1.0.X
from pyramid.paster import paste_script_template_renderer
from pyramid.paster import PyramidTemplate
except ImportError: # pragma: no cover
try: # pragma: no cover (pyramid 1.1.X, 1.2.X)
# trying to import "paste_script_template_renderer" fails on 1.3.X
from pyramid.scaffolds import paste_script_template_renderer
from pyramid.scaffolds import PyramidTemplate
except ImportError: # pragma: no cover (pyramid >=1.3a2)
paste_script_template_renderer = None
from pyramid.scaffolds import PyramidTemplate
class Jinja2ProjectTemplate(PyramidTemplate):
_template_dir = 'jinja2_starter'
summary = 'Pyramid Jinja2 starter project'
template_renderer = staticmethod(paste_script_template_renderer)
|