remove redundant checking because

* isinstance([], Sequence) is True

* isinstance((), Sequence) is True
This commit is contained in:
Srinivas Reddy Thatiparthy 2017-12-12 00:10:49 +05:30
parent 7792587b3f
commit fc544dc660
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ def assertrepr_compare(config, op, left, right):
summary = u('%s %s %s') % (ecu(left_repr), op, ecu(right_repr)) summary = u('%s %s %s') % (ecu(left_repr), op, ecu(right_repr))
def issequence(x): def issequence(x):
return (isinstance(x, (list, tuple, Sequence)) and not isinstance(x, basestring)) return isinstance(x, Sequence) and not isinstance(x, basestring)
def istext(x): def istext(x):
return isinstance(x, basestring) return isinstance(x, basestring)