mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
bd7b8b3310
commit
fd4114e7b8
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue