Kaydet (Commit) fd4114e7 authored tarafından 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.
üst bd7b8b33
...@@ -197,7 +197,7 @@ class ConfigParser: ...@@ -197,7 +197,7 @@ class ConfigParser:
configuration files in the list will be read. A single configuration files in the list will be read. A single
filename may also be given. filename may also be given.
""" """
if type(filenames) is type(''): if type(filenames) in [type(''), type(u'')]:
filenames = [filenames] filenames = [filenames]
for filename in filenames: for filename in filenames:
try: 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