New submission from Márcio Faustino <[email protected]>:
The SafeConfigParser class incorrectly detects lone percent signs,
for example, it doesn't accept "100%%" as a valid value. The cause of
this is the "_badpercent_re" regular expression:
- The first alternative "%[^%]" fails with the string "%%_", because it
matches "%_".
- The second alternative "%$" fails with the string "%%", because it
matches "%".
---
from ConfigParser import *
SafeConfigParser().set('DEFAULT', 'test', '100%%')
----------
components: Library (Lib)
messages: 85899
nosy: marcio
severity: normal
status: open
title: SafeConfigParser incorrectly detects lone percent signs
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue5741>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com