Skip to content

Commit fa7cf85

Browse files
committed
Fix py2 only bug
1 parent 2b7cafb commit fa7cf85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compas_fab/utilities/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def list_files_in_directory(directory, fullpath=False, extensions=[]):
2727
item_fullpath = os.path.join(directory, item)
2828
if os.path.isfile(item_fullpath):
2929
if len(extensions):
30-
found = reduce(lambda x, y: x or y, [item.endswith(ext) for ext in extensions])
30+
found = any([item.endswith(ext) for ext in extensions])
3131
if not found:
3232
continue
3333
if fullpath:

0 commit comments

Comments
 (0)