From: Fred Drake Date: Tue, 9 May 2000 14:46:40 +0000 (+0000) Subject: ConfigParser.read(): X-Git-Tag: v2.0b1~1799 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd4114e7b8d7c81931b488aa11157261c2958b71;p=thirdparty%2FPython%2Fcpython.git ConfigParser.read(): Instead of wrapping 'filenames' value in a list if it's a string, wrap it if it's a string or unicode string. --- diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index e1ce9ddc7e9a..38a85f4520bf 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -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: