Skip to content
Myr

Fix list_modules for PackageLoader

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Bryan Berg · committed by Bryan Berg · parent 18286b6 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:jinja2/loaders.py+1 added-2 removed
249 unmodified lines
250 def _walk(path):251 for filename in self.provider.resource_listdir(path):252 fullname = path + '/' + filename253 if self.provider.resource_isdir(fullname):254 for item in _walk(fullname):255 results.append(item)254 _walk(fullname)255 else:256 results.append(fullname[offset:].lstrip('/'))257 _walk(path)258 results.sort()
192 unmodified lines