diff -r 5cc7905bccc9 -r 1ffeeb91c55d mercurial/lock.py --- 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