[cleanup] add @staticmethod, some other stuff
This commit is contained in:
@@ -541,7 +541,7 @@ def isSorted(iterable):
|
||||
False
|
||||
"""
|
||||
assert isIterable(iterable), 'object is not iterable; object: {' \
|
||||
'0}'.format(iterable)
|
||||
'}'.format(iterable)
|
||||
if type(iterable) is str:
|
||||
iterable = [s for s in iterable]
|
||||
return sorted(iterable) == iterable
|
||||
|
||||
Reference in New Issue
Block a user