Mercurial > cpython-lru_cache-weakref
diff Lib/ConfigParser.py @ 12632:34d2b50eff2e legacy-trunk
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.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 09 May 2000 14:46:40 +0000 |
| parents | b975a056deb6 |
| children | 4dbc75c189bc |
line wrap: on
line diff
--- a/Lib/ConfigParser.py Tue May 09 14:28:03 2000 +0000 +++ b/Lib/ConfigParser.py Tue May 09 14:46:40 2000 +0000 @@ -197,7 +197,7 @@ 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:
