Hello all,<br>I'd like to propose the following change to ConfigParser.py.<br>I won't call it a bug-fix because I don't know the relevant standards.<br>This change will enable multiline comments as follows:<br><br>[section]
<br>
item=value&nbsp;&nbsp; ;first of multiline comment<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;second of multiline comment<br>
<br>
Right now the behaviour is <br>
<br>
In [19]: cfg.get('section','item')<br>
Out[19]: 'value\n;second of multiline comment'<br>
<br>It's a one-line change.<br>RawConfigParser._read lines 434-437<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # comment or blank line?<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if line.strip() == '' or line[0] in '#;':<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if line.strip() == '' or line.strip()[0] in '#;':
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue<br><br>Regards,<br>Greg Willden (Not a member of python-dev)<br clear="all"><br>-- <br>Linux.&nbsp;&nbsp;Because rebooting is for adding hardware.