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

Re: svn commit: rev 5005 - trunk/subversion/tests/clients/cmdline/svntest

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-02-22 05:52:59 CET

On Sat, Feb 22, 2003 at 05:29:40AM +0100, Branko Cibej wrote:
> Greg Stein wrote:
>
> >Yikes. If some code does sys.exit(1), then you're transforming that into a
> >sys.exit(0). Not good.
> >
> I took your suggestion and massaged it into r5014. What do you think?

This line:

+ print ('PASS: ', 'FAIL: ')[ex.code != 0],

eek! :-)

Actually, there has been some discussion of adding a ternary operator to
Python. oy...

Note the Python Fu Master way to write the above:

  print ex.code and 'FAIL' or 'PASS'

hehe :-)

But yah... your changes are great. Thanks!

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 Feb 22 05:48:41 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.