Permalink
Browse files

Merge pull request #39 from failberg/master

Bugfix for list_templates in PackageLoader
  • Loading branch information...
2 parents 1655b4e + bd13945 commit a80d2f560cd0dfaf5e31596f26e77d913dc3275c @mitsuhiko mitsuhiko committed Jun 17, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 jinja2/loaders.py
View
@@ -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)

0 comments on commit a80d2f5

Please sign in to comment.