You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@lyra.org> on 2001/10/04 09:45:55 UTC
Re: svn commit: rev 198 - trunk/subversion/include trunk/subversion/libsvn_wc trunk/subversion/tests/clients/cmdline trunk/subversion/tests/clients/cmdline/svntest
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
Re: svn commit: rev 198 - trunk/subversion/include trunk/subversion/libsvn_wc trunk/subversion/tests/clients/cmdline trunk/subversion/tests/clients/cmdline/svntest
Posted by cm...@collab.net.
Greg Stein <gs...@lyra.org> writes:
> Woah!
>
> How about:
>
> print " %2d %s" % (n, x.__doc__)
>
>
> Much simpler :-)
Ha! I knew it! I knew there was a better way! :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org