]> granicus.if.org Git - python/commitdiff
Remove basestring usage.
authorGeorg Brandl <georg@python.org>
Fri, 30 May 2008 06:27:54 +0000 (06:27 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 30 May 2008 06:27:54 +0000 (06:27 +0000)
Lib/tkinter/__init__.py

index 3d65a2120abd09561ada3594591968dcf3bedd14..24badd81a1e81b5786d23717786228ec8ae25a8b 100644 (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))