[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: I'm in regex hell

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-03-29 04:04:27 CET

Greg Stein wrote:

>On Sat, Mar 29, 2003 at 02:58:05AM +0100, Branko ??ibej wrote:
>
>
>>...
>>
>>
>>>+ for line in err:
>>>+ if re.search("Obstructed update", line):
>>>+ return 0
>>>+ raise svntest.Failure
>>>
>>>
>>Master Ling, he say: "You no return zero from tests! Return ugly. Now I
>>teach Python-Fu!"
>>
>>for line in err:
>> if re.search("Obstructed update", line):
>> break
>>else:
>> raise svntest.Failure
>>
>>
>
>Dang? What is it with people using regexes to solve all their problems? Is
>everyone still carrying around that darned Perl legacy? bleh..
>
> if line.find("Obstructed update") != -1:
> break
>
>

Ah, yes. Master Ling, he has only black belt with purple spots; Master
Stein, he has octarine belt with ultraviolent stripes.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 29 04:05:12 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.