diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-30 18:25:44 +0400 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-30 18:25:44 +0400 |
commit | 2d1549b35a4adea66aebd0b7d9266731dd7ece6f (patch) | |
tree | 7f82f3e5a85f1946276416a44272b6860c355d4a /sphinx/jinja2glue.py | |
parent | 6ae3b68859562f07a1a7e215a7b55dce800305a9 (diff) |
wrap py3 iterators with list() for each places that expect a list object. refs #1350.
Diffstat (limited to 'sphinx/jinja2glue.py')
-rw-r--r-- | sphinx/jinja2glue.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py index c939cba02..b161b4270 100644 --- a/sphinx/jinja2glue.py +++ b/sphinx/jinja2glue.py @@ -114,7 +114,7 @@ class BuiltinTemplateLoader(TemplateBridge, BaseLoader): self.pathchain = pathchain # make the paths into loaders - self.loaders = map(SphinxFileSystemLoader, loaderchain) + self.loaders = [SphinxFileSystemLoader(x) for x in loaderchain] use_i18n = builder.app.translator is not None extensions = use_i18n and ['jinja2.ext.i18n'] or [] |