Remove basestring usage.

This commit is contained in:
Georg Brandl 2008-05-30 06:27:54 +00:00
parent 2932d9376e
commit 29e4f631ac
1 changed files with 1 additions and 1 deletions

View File

@ -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))