[issue6517] configparser: add possibility to escape formatstrings
Till Maas
report at bugs.python.org
Sun Jul 19 00:03:07 CEST 2009
Till Maas <opensource at till.name> added the comment:
Afacs it is not documented to work. Here is the testcase:
#!/usr/bin/python
# vim: fileencoding=utf8
import ConfigParser
import tempfile
file = tempfile.TemporaryFile(mode='rw+b')
file.write("[s]\nf=%%(b)s\n")
file.seek(0)
config = ConfigParser.ConfigParser()
config.readfp(file)
print config.get("s", "f")
file.close()
----------
status: pending -> open
Added file: http://bugs.python.org/file14522/test-configparse.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6517>
_______________________________________
More information about the Python-bugs-list
mailing list