Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/protocol.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 | d10c6835497e |
children | afccc64eea73 |
line wrap: on
line diff
--- a/mercurial/hgweb/protocol.py Tue May 31 20:39:04 2011 -0500 +++ b/mercurial/hgweb/protocol.py Wed Jun 01 12:38:46 2011 +0200 @@ -33,7 +33,7 @@ args = self.req.form.copy() chunks = [] i = 1 - while 1: + while True: h = self.req.env.get('HTTP_X_HGARG_' + str(i)) if h is None: break @@ -50,7 +50,7 @@ sys.stderr = sys.stdout = cStringIO.StringIO() def groupchunks(self, cg): z = zlib.compressobj() - while 1: + while True: chunk = cg.read(4096) if not chunk: break