]> granicus.if.org Git - python/commitdiff
ConfigParser.read():
authorFred Drake <fdrake@acm.org>
Tue, 9 May 2000 14:46:40 +0000 (14:46 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 9 May 2000 14:46:40 +0000 (14:46 +0000)
        Instead of wrapping 'filenames' value in a list if it's a
        string, wrap it if it's a string or unicode string.

Lib/ConfigParser.py

index e1ce9ddc7e9aa602f26da9f1cb88d379ea09f4e7..38a85f4520bf73bd1d4ffd866ac31da11fe2ac5a 100644 (file)
@@ -197,7 +197,7 @@ class ConfigParser:
         configuration files in the list will be read.  A single
         filename may also be given.
         """
-        if type(filenames) is type(''):
+        if type(filenames) in [type(''), type(u'')]:
             filenames = [filenames]
         for filename in filenames:
             try: