]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Python 2.2 doesn't have basestring.
authorSkip Montanaro <skip@pobox.com>
Thu, 3 Oct 2002 14:56:08 +0000 (14:56 +0000)
committerSkip Montanaro <skip@pobox.com>
Thu, 3 Oct 2002 14:56:08 +0000 (14:56 +0000)
Lib/ConfigParser.py

index 85eb7b32bdc40f9ae7ee51361163631cf626e2aa..cdb994c783494b4c60913fc7b4d61993920e135d 100644 (file)
@@ -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: