diff mercurial/localrepo.py @ 14494:1ffeeb91c55d

check-code: flag 0/1 used as constant Boolean expression
author Martin Geisler <mg@lazybytes.net>
date Wed, 01 Jun 2011 12:38:46 +0200
parents 58b36e9ea783
children 4f695345979c
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue May 31 20:39:04 2011 -0500
+++ b/mercurial/localrepo.py	Wed Jun 01 12:38:46 2011 +0200
@@ -1309,7 +1309,7 @@
         b = []
         for n in nodes:
             t = n
-            while 1:
+            while True:
                 p = self.changelog.parents(n)
                 if p[1] != nullid or p[0] == nullid:
                     b.append((t, n, p[0], p[1]))
@@ -1777,7 +1777,7 @@
             pr.total = efiles
             source.callback = None
 
-            while 1:
+            while True:
                 chunkdata = source.filelogheader()
                 if not chunkdata:
                     break