Skip to content

Commit

Permalink
Fix list_modules for PackageLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
berg committed Jun 14, 2011
1 parent 18286b6 commit bd13945
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jinja2/loaders.py
Expand Up @@ -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)
Expand Down

0 comments on commit bd13945

Please sign in to comment.