changegroup: mark cg1unpacker.chunklength as private
authorAugie Fackler <augie@google.com>
Wed, 14 Oct 2015 11:58:56 -0400
changeset 26707 5ee6bd529300
parent 26706 8c0c3059f478
child 26708 749d913f24b8
changegroup: mark cg1unpacker.chunklength as private
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Wed Oct 14 11:58:35 2015 -0400
+++ b/mercurial/changegroup.py	Wed Oct 14 11:58:56 2015 -0400
@@ -196,7 +196,7 @@
     def close(self):
         return self._stream.close()
 
-    def chunklength(self):
+    def _chunklength(self):
         d = readexactly(self._stream, 4)
         l = struct.unpack(">l", d)[0]
         if l <= 4:
@@ -217,7 +217,7 @@
 
     def filelogheader(self):
         """return the header of the filelogs chunk, v10 only has the filename"""
-        l = self.chunklength()
+        l = self._chunklength()
         if not l:
             return {}
         fname = readexactly(self._stream, l)
@@ -232,7 +232,7 @@
         return node, p1, p2, deltabase, cs
 
     def deltachunk(self, prevnode):
-        l = self.chunklength()
+        l = self._chunklength()
         if not l:
             return {}
         headerdata = readexactly(self._stream, self.deltaheadersize)