Skip to content

Commit

Permalink
Try again to fix Iterables
Browse files Browse the repository at this point in the history
  • Loading branch information
skaller committed Dec 11, 2022
1 parent 3541781 commit fe7bd35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fbuild/lib/fbuild/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

import fbuild.fnmatch
import fbuild.glob
try:
collectionsIterable = collections.Iterable
except:
collectionsIterable = collections.abc.Iterable
#try:
# collectionsIterable = collections.Iterable
#except:
# collectionsIterable = collections.abc.Iterable

# ------------------------------------------------------------------------------

Expand Down Expand Up @@ -531,7 +531,7 @@ def igloball(*patterns, **kwargs):
for pattern in patterns:
if \
not isinstance(pattern, str) and \
isinstance(pattern, collectionsIterable):
isinstance(pattern, collections.abc.Iterable):
paths = Path.igloball(*pattern)
else:
paths = Path.glob(pattern, **kwargs)
Expand Down

0 comments on commit fe7bd35

Please sign in to comment.