[cleanup] add @staticmethod, some other stuff

This commit is contained in:
2018-07-17 14:45:51 +02:00
parent d151cdbc6d
commit 415af11f63
9 changed files with 64 additions and 40 deletions
+1 -1
View File
@@ -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