From ac2bc2774ff0e6fdf6b74c55381e1f8a06007e1f Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Thu, 3 Oct 2002 14:56:08 +0000 Subject: [PATCH] Python 2.2 doesn't have basestring. --- Lib/ConfigParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 85eb7b32bdc4..cdb994c78349 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -222,7 +222,7 @@ class ConfigParser: configuration files in the list will be read. A single filename may also be given. """ - if isinstance(filenames, basestring): + if isinstance(filenames, (str, unicode)): filenames = [filenames] for filename in filenames: try: -- 2.47.3