From fd4114e7b8d7c81931b488aa11157261c2958b71 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 9 May 2000 14:46:40 +0000 Subject: 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. --- Lib/ConfigParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index e1ce9dd..38a85f4 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: -- cgit v0.12