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

Re: [PATCH] check-case-insensitive.py: Don't use 'string' library

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2006-08-25 10:48:37 CEST

> @@ -288,17 +287,17 @@
> else:
> changedpath = changedroot + '/' + path
> for added in changed.added:
> - if (string.lower(added) == string.lower(changedpath)):
> + if (added.lower() == changedpath.lower()):
>
The brackets around the conditional expression seems less pythonic. My 2
cents :).
> return added
> for added in changed.addeddir:
> - if (string.lower(added) == string.lower(changedpath)):
> + if (added.lower() == changedpath.lower()):
>
Same.
With regards
Kamesh Jayachandran

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 25 10:49:11 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.