From: Bryan Berg Date: Tue, 14 Jun 2011 01:43:11 +0000 (-0700) Subject: Fix list_modules for PackageLoader X-Git-Tag: 2.6~5^2~2^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bd13945a698f509c11486baaa93ff970c2d08f98;p=jinja2.git Fix list_modules for PackageLoader --- diff --git a/jinja2/loaders.py b/jinja2/loaders.py index f8420c7..419a9c8 100644 --- 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)