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

Re: [PATCH] [cvs2svn] Code cleanup - eliminate duplicate code

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-08-26 13:26:52 CEST

On Mon, Aug 25, 2003 at 05:50:48PM +0100, Max Bowsher wrote:
> Michael Wood wrote:
> > On Sat, Aug 23, 2003 at 11:41:09AM +0100, Max Bowsher wrote:
> >> * tools/cvs2svn/cvs2svn.py (RepositoryMirror.delete_path):
> >> Restructure "if" statement to eliminate duplicate code.
> >>
> >> Index: cvs2svn.py
> >> ===================================================================
> >> [snip] - if new_key:
> >> + if new_key == None:
> >
> > Shouldn't that be "if new_key is None:"?
>
> Does it make any difference?

Well, in general, "==" is not the same as "is".

> I don't think it does.

You're probably right.

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 26 13:27:54 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.