mercurial/keepalive.py
changeset 51916 1a640aa20e48
parent 51901 f4733654f144
equal deleted inserted replaced
51915:6a0afc73472e 51916:1a640aa20e48
   430             self._connection.receivedbytescount += len(data)
   430             self._connection.receivedbytescount += len(data)
   431         if self._handler is not None:
   431         if self._handler is not None:
   432             self._handler.parent.receivedbytescount += len(data)
   432             self._handler.parent.receivedbytescount += len(data)
   433         return data
   433         return data
   434 
   434 
   435     def readline(self):
   435     def readline(self, limit: int = -1):
   436         data = super().readline()
   436         data = super().readline(limit=limit)
   437         self.receivedbytescount += len(data)
   437         self.receivedbytescount += len(data)
   438         if self._connection is not None:
   438         if self._connection is not None:
   439             self._connection.receivedbytescount += len(data)
   439             self._connection.receivedbytescount += len(data)
   440         if self._handler is not None:
   440         if self._handler is not None:
   441             self._handler.parent.receivedbytescount += len(data)
   441             self._handler.parent.receivedbytescount += len(data)