[issue5741] SafeConfigParser incorrectly detects lone percent signs

2009-04-13 Thread Georg Brandl
Georg Brandl added the comment: You're right, of course. Fixed in r71564. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5741] SafeConfigParser incorrectly detects lone percent signs

2009-04-13 Thread Márcio Faustino
Márcio Faustino added the comment: Shouldn't the "replace('%%', '')" take place before "_interpvar_re.sub"? For example, the value "%%(test)s" should be accepted as valid but it isn't because "_interpvar_re" has already changed it to "%". -- ___ P

[issue5741] SafeConfigParser incorrectly detects lone percent signs

2009-04-12 Thread Georg Brandl
Georg Brandl added the comment: Should be fixed in r71537. Will backport to 2.6. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5741] SafeConfigParser incorrectly detects lone percent signs

2009-04-12 Thread Márcio Faustino
New submission from Márcio Faustino : 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