diff Lib/ConfigParser.py @ 25541:47aa9fc74da8 2.2

use types.StringTypes instead of (str, unicode)
author Skip Montanaro <skip@pobox.com>
date Thu, 03 Oct 2002 15:27:47 +0000
parents 2dc0da5372b4
children a0005d26773d
line wrap: on
line diff
--- a/Lib/ConfigParser.py	Thu Oct 03 14:56:08 2002 +0000
+++ b/Lib/ConfigParser.py	Thu Oct 03 15:27:47 2002 +0000
@@ -84,6 +84,7 @@
 """
 
 import re
+import types
 
 __all__ = ["NoSectionError","DuplicateSectionError","NoOptionError",
            "InterpolationError","InterpolationDepthError","ParsingError",
@@ -222,7 +223,7 @@
         configuration files in the list will be read.  A single
         filename may also be given.
         """
-        if isinstance(filenames, (str, unicode)):
+        if isinstance(filenames, types.StringTypes):
             filenames = [filenames]
         for filename in filenames:
             try: