--- a/mercurial/patch.py Tue May 31 20:39:04 2011 -0500 +++ b/mercurial/patch.py Wed Jun 01 12:38:46 2011 +0200 @@ -346,7 +346,7 @@ return self.fp.readline() def __iter__(self): - while 1: + while True: l = self.readline() if not l: break