Fix list_modules for PackageLoader
authorBryan Berg <bryan@mixedmedialabs.com>
Tue, 14 Jun 2011 01:43:11 +0000 (18:43 -0700)
committerBryan Berg <bryan@mixedmedialabs.com>
Tue, 14 Jun 2011 01:43:11 +0000 (18:43 -0700)
jinja2/loaders.py

index f8420c7aeb8520a7950c247af2006e6f41ad1d23..419a9c8c6c1566a918c041e5d28e767f85a1ff24 100644 (file)
@@ -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)