projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd7b8b3
)
ConfigParser.read():
author
Fred Drake
<fdrake@acm.org>
Tue, 9 May 2000 14:46:40 +0000
(14:46 +0000)
committer
Fred Drake
<fdrake@acm.org>
Tue, 9 May 2000 14:46:40 +0000
(14:46 +0000)
Instead of wrapping 'filenames' value in a list if it's a
string, wrap it if it's a string or unicode string.
Lib/ConfigParser.py
patch
|
blob
|
history
diff --git
a/Lib/ConfigParser.py
b/Lib/ConfigParser.py
index e1ce9ddc7e9aa602f26da9f1cb88d379ea09f4e7..38a85f4520bf73bd1d4ffd866ac31da11fe2ac5a 100644
(file)
--- a/
Lib/ConfigParser.py
+++ b/
Lib/ConfigParser.py
@@
-197,7
+197,7
@@
class ConfigParser:
configuration files in the list will be read. A single
filename may also be given.
"""
- if type(filenames) i
s type('')
:
+ if type(filenames) i
n [type(''), type(u'')]
:
filenames = [filenames]
for filename in filenames:
try: