--- a/mercurial/lock.py Tue May 31 20:39:04 2011 -0500 +++ b/mercurial/lock.py Wed Jun 01 12:38:46 2011 +0200 @@ -51,7 +51,7 @@ def lock(self): timeout = self.timeout - while 1: + while True: try: self.trylock() return 1