Re: Using percent signs with SafeConfigParser

2009-04-12 Thread Peter Otten
MRAB wrote: > Márcio Faustino wrote: > > On 11 Abr, 20:06, Peter Otten <__pete...@web.de> wrote: > >> I think you are right. Please file a bug report . > > > > I will. > > > >> IMO this doesn't fix the problem because > >> > >> (1) it allows "%%%" which is also incorrect > > > > You're r

Re: Using percent signs with SafeConfigParser

2009-04-12 Thread Peter Otten
Márcio Faustino wrote: > On 11 Abr, 20:06, Peter Otten <__pete...@web.de> wrote: >> (2) _interpvar_re has already butchered values like "%%(alpha)s" to "%" > > Isn't that expected? I mean, one wouldn't write "%%(alpha)s", but > instead "%%%(alpha)s" or "%(alpha)s" right? "%%(alpha)s" would mean

Re: Using percent signs with SafeConfigParser

2009-04-11 Thread MRAB
Márcio Faustino wrote: > On 11 Abr, 20:06, Peter Otten <__pete...@web.de> wrote: >> I think you are right. Please file a bug report . > > I will. > >> IMO this doesn't fix the problem because >> >> (1) it allows "%%%" which is also incorrect > > You're right, how about this one "(? Instead of chec

Re: Using percent signs with SafeConfigParser

2009-04-11 Thread Márcio Faustino
On 11 Abr, 20:06, Peter Otten <__pete...@web.de> wrote: > I think you are right. Please file a bug report . I will. > IMO this doesn't fix the problem because > > (1) it allows "%%%" which is also incorrect You're right, how about this one "(? (2) _interpvar_re has already butchered values like

Re: Using percent signs with SafeConfigParser

2009-04-11 Thread Peter Otten
Márcio Faustino wrote: > Does the SafeConfigParser class correctly detects lone percent signs? > For example, shouldn't the string "100%%" be accepted as a valid > value? Executing the code below should only print one error, instead > it prints 2. (I've tested this with version 2.6.1 on Windows XP

Using percent signs with SafeConfigParser

2009-04-11 Thread Márcio Faustino
Hi, Does the SafeConfigParser class correctly detects lone percent signs? For example, shouldn't the string "100%%" be accepted as a valid value? Executing the code below should only print one error, instead it prints 2. (I've tested this with version 2.6.1 on Windows XP.) It seems the "_badperce