[Python-checkins] python/dist/src/Lib ConfigParser.py,1.65,1.66 (original) (raw)
fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Tue May 18 00:24:05 EDT 2004
- Previous message: [Python-checkins] python/dist/src/Doc/lib libcfgparser.tex, 1.37, 1.38
- Next message: [Python-checkins] python/dist/src/Lib/test cfgparser.1, NONE, 1.1 test_cfgparser.py, 1.22, 1.23
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21743/Lib
Modified Files: ConfigParser.py Log Message: ConfigParser:
- read() method returns a list of files parsed successfully
- add tests, documentation (closes SF patch #677651)
Index: ConfigParser.py
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** ConfigParser.py 18 May 2004 03:29:52 -0000 1.65 --- ConfigParser.py 18 May 2004 04:24:02 -0000 1.66
*** 46,50 **** read and parse the list of named configuration files, given by name. A single filename is also allowed. Non-existing files ! are ignored.
readfp(fp, filename=None)
--- 46,50 ---- read and parse the list of named configuration files, given by name. A single filename is also allowed. Non-existing files ! are ignored. Return list of successfully read files.
readfp(fp, filename=None)
*** 253,259 **** --- 253,262 ---- configuration files in the list will be read. A single filename may also be given.
+
Return list of successfully read files. """ if isinstance(filenames, basestring): filenames = [filenames]
read_ok = [] for filename in filenames: try:
*** 263,266 **** --- 266,271 ---- self._read(fp, filename) fp.close()
read_ok.append(filename)
return read_ok def readfp(self, fp, filename=None):
- Previous message: [Python-checkins] python/dist/src/Doc/lib libcfgparser.tex, 1.37, 1.38
- Next message: [Python-checkins] python/dist/src/Lib/test cfgparser.1, NONE, 1.1 test_cfgparser.py, 1.22, 1.23
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]