diff options
-rw-r--r-- | sphinx/ext/coverage.py | 2 | ||||
-rw-r--r-- | sphinx/jinja2glue.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/ext/coverage.py b/sphinx/ext/coverage.py index ed5d92a4f..38dabf9f3 100644 --- a/sphinx/ext/coverage.py +++ b/sphinx/ext/coverage.py @@ -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: diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py index e2c96a963..0a47b66d8 100644 --- a/sphinx/jinja2glue.py +++ b/sphinx/jinja2glue.py @@ -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) |