[59364] trunk/dports/python

Rainer Müller raimue at macports.org
Wed Oct 14 18:23:36 PDT 2009


On 2009-10-14 20:06 , Blair Zajac wrote:
> Ryan Schmidt wrote:
>> Note that for proper escaping, you either need double backslashes in 
>> front of the periods...
>>
>> livecheck.regex     CouchDB (0\\.\[0-9\]+(\\.\[0-9\]+)?)
>>
>> ...or you need to enclose the entire regex in curly quotes to disable 
>> tcl special characters...
>>
>> livecheck.regex     {CouchDB (0\.[0-9]+(\.[0-9]+)?)}
> 
> Thanks, I'll fix that.  I just copied these from the py26-pyflakes port, so we 
> should fix those also.
> 
> This would be a good thing for port lint, as it's not obvious.

It's hard to detect if an backslash escape is meant for Tcl or the
regex. Remember that you cannot use variables inside curly braces and
therefore sometimes you want to have additional backslashes. What would
be the rule to warn on port lint?

Rainer


More information about the macports-dev mailing list