diff mercurial/ancestor.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 22565ddb28e7
children 0b03454abae7
line wrap: on
line diff
--- a/mercurial/ancestor.py	Tue May 31 20:39:04 2011 -0500
+++ b/mercurial/ancestor.py	Wed Jun 01 12:38:46 2011 +0200
@@ -76,7 +76,7 @@
     # increment each ancestor list until it is closer to root than
     # the other, or they match
     try:
-        while 1:
+        while True:
             if gx[0] == gy[0]:
                 for v in gx[1]:
                     if v in gy[1]: