[Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.17,1.18
Fred Drake
python-dev@python.org
Tue, 9 May 2000 10:46:44 -0400
Update of /projects/cvsroot/python/dist/src/Lib
In directory seahag.cnri.reston.va.us:/home/fdrake/projects/python/Lib
Modified Files:
ConfigParser.py
Log Message:
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.
Index: ConfigParser.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** ConfigParser.py 2000/03/03 20:43:57 1.17
--- ConfigParser.py 2000/05/09 14:46:40 1.18
***************
*** 198,202 ****
filename may also be given.
"""
! if type(filenames) is type(''):
filenames = [filenames]
for filename in filenames:
--- 198,202 ----
filename may also be given.
"""
! if type(filenames) in [type(''), type(u'')]:
filenames = [filenames]
for filename in filenames: