[issue27762] ConfigParser ignores in-line comments for lines with semi-colons

Łukasz Langa report at bugs.python.org
Tue Aug 16 14:34:23 EDT 2016


Łukasz Langa added the comment:

I'm sorry but we can't do anything about this for Python 2.7 anymore. There's a big danger of altering how existing config files in the wild are being parsed, which is why we only broke compatibility once, with the release of Python 3.2. Even then, doing it very carefully, we found a few instances of painful parsing differences (.pypirc being the most widely spread example).

So, the fix here is to switch to Python 3 or use the configparser backport available on PyPI.

----------
resolution:  -> wont fix

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27762>
_______________________________________


More information about the Python-bugs-list mailing list