mercurial/hgweb/protocol.py
changeset 30014 d34cf260d15b
parent 29792 58467204cac0
child 30206 d105195436c0
--- a/mercurial/hgweb/protocol.py	Sun Sep 25 13:20:55 2016 -0700
+++ b/mercurial/hgweb/protocol.py	Sun Sep 25 12:20:31 2016 -0700
@@ -73,13 +73,13 @@
         val = self.ui.fout.getvalue()
         self.ui.ferr, self.ui.fout = self.oldio
         return val
-    def groupchunks(self, cg):
+    def groupchunks(self, fh):
         # Don't allow untrusted settings because disabling compression or
         # setting a very high compression level could lead to flooding
         # the server's network or CPU.
         z = zlib.compressobj(self.ui.configint('server', 'zliblevel', -1))
         while True:
-            chunk = cg.read(32768)
+            chunk = fh.read(32768)
             if not chunk:
                 break
             data = z.compress(chunk)