Mercurial > public > mercurial-scm > hg-stable
diff mercurial/keepalive.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 | 4612cded5176 |
children | a7d5816087a9 |
line wrap: on
line diff
--- a/mercurial/keepalive.py Tue May 31 20:39:04 2011 -0500 +++ b/mercurial/keepalive.py Wed Jun 01 12:38:46 2011 +0200 @@ -507,7 +507,7 @@ def readlines(self, sizehint = 0): total = 0 list = [] - while 1: + while True: line = self.readline() if not line: break @@ -654,7 +654,7 @@ fo = urllib2.urlopen(url) foo = '' - while 1: + while True: f = fo.readline() if f: foo = foo + f