Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Jul 18, 2023
1 parent 6edc1c1 commit 8cfc614
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,19 +1268,13 @@ def islist(arg, uniform=False, include_dict=True):
:return: Whether `arg` is a `list`
:rtype: bool
"""
if isinstance(arg, str):
# strs are not sequences
return False
elif not isinstance(arg, Iterable):
# non-iterables are not sequences
if isinstance(arg, str) or not isinstance(arg, Iterable):
# str and non-iterables are not lists
return False
elif not include_dict and isinstance(arg, dict):
# do not treat dict as a sequence
# do not treat dict as a list
return False

# found a valid sequence!

if not uniform:
elif not uniform:
# short circuit for non-uniformity
return True

Expand Down

0 comments on commit 8cfc614

Please sign in to comment.