mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Remove basestring usage.
This commit is contained in:
parent
2932d9376e
commit
29e4f631ac
1 changed files with 1 additions and 1 deletions
|
@ -1053,7 +1053,7 @@ class Misc:
|
|||
v = self._register(v)
|
||||
elif isinstance(v, (tuple, list)):
|
||||
for item in v:
|
||||
if not isinstance(item, (basestring, int)):
|
||||
if not isinstance(item, (str, int)):
|
||||
break
|
||||
else:
|
||||
v = ' '.join(map(str, v))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue