Mailing List Archive

python/dist/src/Lib ConfigParser.py,1.38.10.5,1.38.10.6
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv2108

Modified Files:
Tag: release22-maint
ConfigParser.py
Log Message:
use types.StringTypes instead of (str, unicode)


Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.38.10.5
retrieving revision 1.38.10.6
diff -C2 -d -r1.38.10.5 -r1.38.10.6
*** ConfigParser.py 3 Oct 2002 14:56:08 -0000 1.38.10.5
--- ConfigParser.py 3 Oct 2002 15:27:47 -0000 1.38.10.6
***************
*** 85,88 ****
--- 85,89 ----

import re
+ import types

__all__ = [."NoSectionError","DuplicateSectionError","NoOptionError",
***************
*** 223,227 ****
filename may also be given.
"""
! if isinstance(filenames, (str, unicode)):
filenames = [filenames]
for filename in filenames:
--- 224,228 ----
filename may also be given.
"""
! if isinstance(filenames, types.StringTypes):
filenames = [filenames]
for filename in filenames: