diff options
author | Fred Drake <fdrake@acm.org> | 2000-05-09 14:46:40 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-05-09 14:46:40 (GMT) |
commit | fd4114e7b8d7c81931b488aa11157261c2958b71 (patch) | |
tree | ff0a9b02c002fa1b10e0546c491bd8a06fe479bd /Lib/ConfigParser.py | |
parent | bd7b8b3310dd26701d6950b51f98f7c9f0da837e (diff) | |
download | cpython-fd4114e7b8d7c81931b488aa11157261c2958b71.zip cpython-fd4114e7b8d7c81931b488aa11157261c2958b71.tar.gz cpython-fd4114e7b8d7c81931b488aa11157261c2958b71.tar.bz2 |
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.
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r-- | Lib/ConfigParser.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |