Message61020
I'd like to propose the following change to
ConfigParser.py.
This change will enable multiline comments as follows:
[section]
item=value ;first of multiline comment
;second of multiline comment
Right now the behaviour is
In [19]: cfg.get('section','item')
Out[19]: 'value\n;second of multiline comment'
It's a one-line change.
RawConfigParser._read lines 434-437
# comment or blank line?
- if line.strip() == '' or line[0] in '#;':
+ if line.strip() == '' or line.strip()[0]
in '#;':
continue
|
|
Date |
User |
Action |
Args |
2008-01-20 09:59:03 | admin | link | issue1576208 messages |
2008-01-20 09:59:03 | admin | create | |
|