Commit fd4114e7 authored by Fred Drake's avatar Fred Drake

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.
parent bd7b8b33
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment