[issue24086] Configparser interpolation is unexpected

Trevor Bekolay report at bugs.python.org
Mon May 4 19:09:03 CEST 2015


Trevor Bekolay added the comment:

Thanks for the quick response! I can see the use case for using interpolation in .pypirc. Unfortunately for me, I push releases for both Python 2 and Python 3, so having the double percent sign will cause problems for me on Python 2.

The exception that's being raised is at line 442 (https://hg.python.org/cpython/file/default/Lib/configparser.py#l442). The message itself seems to have the right information, but setuptools seems to mangle it  (perhaps InterpolationSyntaxError needs a __repr__ or __str__?)

----------

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


More information about the Python-bugs-list mailing list