Commit 22a8ace2 authored by Jason R. Coombs's avatar Jason R. Coombs

Only return results that are files. Fixes failing test and corrects additional regression in 18.3.

parent 50b7a002
...@@ -144,11 +144,12 @@ def _find_all_simple(path): ...@@ -144,11 +144,12 @@ def _find_all_simple(path):
""" """
Find all files under 'path' Find all files under 'path'
""" """
return ( results = (
os.path.join(base, file) os.path.join(base, file)
for base, dirs, files in os.walk(path, followlinks=True) for base, dirs, files in os.walk(path, followlinks=True)
for file in files for file in files
) )
return filter(os.path.isfile, results)
def findall(dir=os.curdir): def findall(dir=os.curdir):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment