--- a/mercurial/keepalive.py Mon Jan 21 13:37:27 2008 -0200
+++ b/mercurial/keepalive.py Sun Jan 20 14:39:25 2008 +0100
@@ -129,7 +129,7 @@
def add(self, host, connection, ready):
self._lock.acquire()
try:
- if not self._hostmap.has_key(host): self._hostmap[host] = []
+ if not host in self._hostmap: self._hostmap[host] = []
self._hostmap[host].append(connection)
self._connmap[connection] = host
self._readymap[connection] = ready
@@ -159,7 +159,7 @@
conn = None
self._lock.acquire()
try:
- if self._hostmap.has_key(host):
+ if host in self._hostmap:
for c in self._hostmap[host]:
if self._readymap[c]:
self._readymap[c] = 0