Skip to content
This repository
Browse code

Merge pull request #39 from failberg/master

Bugfix for list_templates in PackageLoader
  • Loading branch information...
commit a80d2f560cd0dfaf5e31596f26e77d913dc3275c 2 parents 1655b4e + bd13945
Armin Ronacher authored June 16, 2011

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  jinja2/loaders.py
3  jinja2/loaders.py
@@ -251,8 +251,7 @@ def _walk(path):
251 251
             for filename in self.provider.resource_listdir(path):
252 252
                 fullname = path + '/' + filename
253 253
                 if self.provider.resource_isdir(fullname):
254  
-                    for item in _walk(fullname):
255  
-                        results.append(item)
  254
+                    _walk(fullname)
256 255
                 else:
257 256
                     results.append(fullname[offset:].lstrip('/'))
258 257
         _walk(path)

0 notes on commit a80d2f5

Please sign in to comment.
Something went wrong with that request. Please try again.