From 29e4f631ac6335c67518d599facbbb5c41143d75 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 30 May 2008 06:27:54 +0000 Subject: [PATCH] Remove basestring usage. --- Lib/tkinter/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 3d65a2120ab..24badd81a1e 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -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))