> Index: ConfigParser.py > =================================================================== > RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v > retrieving revision 1.38.10.4 > retrieving revision 1.38.10.5 > diff -C2 -d -r1.38.10.4 -r1.38.10.5 > *** ConfigParser.py 27 Sep 2002 16:34:30 -0000 1.38.10.4 > --- ConfigParser.py 3 Oct 2002 14:56:08 -0000 1.38.10.5 > *************** > *** 223,227 **** > filename may also be given. > """ > ! if isinstance(filenames, basestring): > filenames = [filenames] > for filename in filenames: > --- 223,227 ---- > filename may also be given. > """ > ! if isinstance(filenames, (str, unicode)): > filenames = [filenames] > for filename in filenames: The correct idiom for this is to use types.StringTypes. --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4