Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #39 from failberg/master

Bugfix for list_templates in PackageLoader
  • Loading branch information...
commit a80d2f560cd0dfaf5e31596f26e77d913dc3275c 2 parents 1655b4e + bd13945
@mitsuhiko authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  jinja2/loaders.py
View
3  jinja2/loaders.py
@@ -251,8 +251,7 @@ def _walk(path):
for filename in self.provider.resource_listdir(path):
fullname = path + '/' + filename
if self.provider.resource_isdir(fullname):
- for item in _walk(fullname):
- results.append(item)
+ _walk(fullname)
else:
results.append(fullname[offset:].lstrip('/'))
_walk(path)
Please sign in to comment.
Something went wrong with that request. Please try again.