Lines Matching refs:str
554 >>> a = list(map(str, range(1,40)))
1258 # someone passes mixed bytes and str to {unified,context}_diff(). E.g.
1262 # because of how str.format() incorporates bytes objects.
1263 if a and not isinstance(a[0], str):
1264 raise TypeError('lines to compare must be str, not %s (%r)' %
1266 if b and not isinstance(b[0], str):
1267 raise TypeError('lines to compare must be str, not %s (%r)' %
1270 if not isinstance(arg, str):
1271 raise TypeError('all arguments must be str, not: %r' % (arg,))
1277 than str. This is a wrapper for `dfunc`, which is typically either
1282 bytes rather than str.