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.
This commit is contained in:
Fred Drake 2000-05-09 14:46:40 +00:00
parent bd7b8b3310
commit fd4114e7b8

View 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: