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

I'm in regex hell (was: svn commit: rev 5488 - trunk/subversion/tests/clients/cmdline)

From: Greg Stein <gstein_at_kurgan.lyra.org>
Date: 2003-03-29 03:57:48 CET

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

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 29 03:55:08 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.