contrib/churn.py
changeset 5915 d0576d065993
parent 5588 083b6e3142a2
child 5975 75d9fe70c654
--- 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