Skip to content
This repository
Browse code

Fix list_modules for PackageLoader

  • Loading branch information...
commit bd13945a698f509c11486baaa93ff970c2d08f98 1 parent 18286b6
Bryan Berg authored June 13, 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 bd13945

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