diff contrib/churn.py @ 5915:d0576d065993

Prefer i in d over d.has_key(i)
author Christian Ebert <blacktrash@gmx.net>
date Sun, 20 Jan 2008 14:39:25 +0100
parents 083b6e3142a2
children 75d9fe70c654
line wrap: on
line diff
--- a/contrib/churn.py	Mon Jan 21 13:37:27 2008 -0200
+++ b/contrib/churn.py	Sun Jan 20 14:39:25 2008 +0100
@@ -114,11 +114,11 @@
         who, lines = __gather(ui, repo, node1, node2)
 
         # remap the owner if possible
-        if amap.has_key(who):
+        if who in amap:
             ui.note("using '%s' alias for '%s'\n" % (amap[who], who))
             who = amap[who]
 
-        if not stats.has_key(who):
+        if not who in stats:
             stats[who] = 0
         stats[who] += lines