mercurial/hgweb/protocol.py
changeset 14494 1ffeeb91c55d
parent 14094 d10c6835497e
child 14614 afccc64eea73
--- 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