Make "make check" happy.

This commit is contained in:
Georg Brandl 2009-10-26 14:07:13 +01:00
parent 3594104d4e
commit f98a703ef3
2 changed files with 3 additions and 2 deletions

View File

@ -119,7 +119,7 @@ class CoverageBuilder(Builder):
def build_py_coverage(self):
objects = self.env.domaindata['py']['objects']
modules = self.env.domaindata['py']['modules']
for mod_name in modules:
ignore = False
for exp in self.mod_ignorexps:

View File

@ -101,7 +101,8 @@ class BuiltinTemplateLoader(TemplateBridge, BaseLoader):
self.environment.globals['debug'] = contextfunction(pformat)
self.environment.globals['accesskey'] = contextfunction(accesskey)
if use_i18n:
self.environment.install_gettext_translations(builder.app.translator)
self.environment.install_gettext_translations(
builder.app.translator)
def render(self, template, context):
return self.environment.get_template(template).render(context)