From bd13945a698f509c11486baaa93ff970c2d08f98 Mon Sep 17 00:00:00 2001 From: Bryan Berg Date: Mon, 13 Jun 2011 18:43:11 -0700 Subject: [PATCH] Fix list_modules for PackageLoader --- jinja2/loaders.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.26.2