projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18286b6
)
Fix list_modules for PackageLoader
author
Bryan Berg
<bryan@mixedmedialabs.com>
Tue, 14 Jun 2011 01:43:11 +0000
(18:43 -0700)
committer
Bryan Berg
<bryan@mixedmedialabs.com>
Tue, 14 Jun 2011 01:43:11 +0000
(18:43 -0700)
jinja2/loaders.py
patch
|
blob
|
history
diff --git
a/jinja2/loaders.py
b/jinja2/loaders.py
index f8420c7aeb8520a7950c247af2006e6f41ad1d23..419a9c8c6c1566a918c041e5d28e767f85a1ff24 100644
(file)
--- a/
jinja2/loaders.py
+++ b/
jinja2/loaders.py
@@
-251,8
+251,7
@@
class PackageLoader(BaseLoader):
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)