Diego Ramirez <[email protected]> added the comment:
I would like to give a better explanation of the issue (maybe the previous
explanation was unclear). A user reported to Pip that, when he used a
"setup.cfg" file, the configparser module crashed (as I said above).
The file contained a percentage character (%) inside a commentary (which is
expected to be ignored):
[flake8]
ignore =
WPS323 # percentage sign '%'
And, because pip uses configparser on those cases, any operation with pip fails.
So, I would like to know if we can do something to fix this bug (I noticed the
place where it fails at
https://github.com/python/cpython/blob/main/Lib/configparser.py#L442). If I can
fill a PR to help, just tell me, OK?
----------
title: configparser fails when the file contains a "%" inside a commentary ->
[configparser] Module configparser fails when the file contains a "%" inside a
commentary
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44892>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com