[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 5632 - trunk/subversion/tests/clients/cmdline

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-04-15 23:03:56 CEST

sussman@tigris.org writes:

> Author: sussman
> Date: Tue Apr 15 13:43:11 2003
> New Revision: 5632
[...]
> + got_match = 0;
> + for line in diff_output:
> + if (line == line1):
> + got_match = 1;
> + if not got_match:
> + raise svntest.Failure

When I wrote something like that gstein told me about the for-else
construct

    for line in diff_output:
      if line == line1:
        break
    else:
      raise ...

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 15 23:04:43 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.