[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 198 - trunk/subversion/include trunk/subversion/libsvn_wc trunk/subversion/tests/clients/cmdline trunk/subversion/tests/clients/cmdline/svntest

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-10-04 11:45:55 CEST

On Wed, Oct 03, 2001 at 11:34:59AM -0500, cmpilato@tigris.org wrote:
>...
> * tests/clients/cmdline/svntest/main.py
>
> (run_tests): Right-align the test number in the listing (there's
> probably a less Perl-y way to do this, but whatever.
>...
> --- OLD/trunk/subversion/tests/clients/cmdline/svntest/main.py Wed Oct 3 11:34:57 2001
> +++ NEW/trunk/subversion/tests/clients/cmdline/svntest/main.py Wed Oct 3 11:34:57 2001
> @@ -276,7 +276,10 @@
> print "------ ----------------"
> n = 1
> for x in test_list[1:]:
> - print " ", n, " ", x.__doc__
> + prnt_n = `n`
> + if n < 10:
> + prnt_n = " " + prnt_n
> + print " ", prnt_n, " ", x.__doc__

Woah!

How about:

  print " %2d %s" % (n, x.__doc__)

Much simpler :-)

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 Oct 21 14:36:44 2006

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.