summaryrefslogtreecommitdiffstats
path: root/Lib/plat-freebsd2
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-07-01 20:41:12 (GMT)
committerBarry Warsaw <barry@python.org>1998-07-01 20:41:12 (GMT)
commitbfa3f6b673d80de48c2bb9a85cf942a958b97374 (patch)
tree98353aea9f51a2c298075ce5a5779402bda8b4da /Lib/plat-freebsd2
parentb68cd421e151c78c065679948529ebef6c41d96a (diff)
downloadcpython-bfa3f6b673d80de48c2bb9a85cf942a958b97374.zip
cpython-bfa3f6b673d80de48c2bb9a85cf942a958b97374.tar.gz
cpython-bfa3f6b673d80de48c2bb9a85cf942a958b97374.tar.bz2
Several changes:
1. Convert to using re module 2. Added two new exception classes a. MissingSectionHeaderError which signals an early parsing exception when options appear in the file before any section header. Previously a bogus TypeError was thrown deeper down. b. ParsingError which collates any non-fatal parsing errors. ConfigParser.read() will raise this after the entire file was parsed if any errors occurred during parsing (client could just catch the exception and continue, because the ConfigParser instance would still be initialized with the valid data). (small note: Error.__msg => Error._msg) 3. ConfigParser.__read() now uses re which has the following minor semantic change: underscore is now allowed in section header and option name. Also, because of the old regexps, theoretically. Fixed continuation line bug reported by F. Lundh. 4. It seemed that the old ConfigParser automatically added the option `name' to every section, which contained the name of the section. This seemed bogus to me so I took it out.
Diffstat (limited to 'Lib/plat-freebsd2')
0 files changed, 0 insertions, 0 deletions