diff -r 5cc7905bccc9 -r 1ffeeb91c55d mercurial/hgweb/protocol.py --- 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