remove redundant checking because
* isinstance([], Sequence) is True * isinstance((), Sequence) is True
This commit is contained in:
parent
7792587b3f
commit
fc544dc660
|
@ -109,7 +109,7 @@ def assertrepr_compare(config, op, left, right):
|
|||
summary = u('%s %s %s') % (ecu(left_repr), op, ecu(right_repr))
|
||||
|
||||
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):
|
||||
return isinstance(x, basestring)
|
||||
|
|
Loading…
Reference in New Issue