diff mercurial/keepalive.py @ 16686:67964cda8701

cleanup: "not x in y" -> "x not in y"
author Brodie Rao <brodie@sf.io>
date Sat, 12 May 2012 16:00:57 +0200
parents 7de7630053cb
children e34106fa0dc3
line wrap: on
line diff
--- a/mercurial/keepalive.py	Sat May 12 16:00:53 2012 +0200
+++ b/mercurial/keepalive.py	Sat May 12 16:00:57 2012 +0200
@@ -136,7 +136,7 @@
     def add(self, host, connection, ready):
         self._lock.acquire()
         try:
-            if not host in self._hostmap:
+            if host not in self._hostmap:
                 self._hostmap[host] = []
             self._hostmap[host].append(connection)
             self._connmap[connection] = host