Dulwich.io dulwich / 26c4e27
Use keyword arguments to prevent accidentally passing in the wrong arguments to super constructor. Jelmer Vernooń≥ 1 year, 5 months ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
342342 will still block until at least one byte is read.
343343 """
344344
345 def __init__(self, recv, write, report_activity=None, rbufsize=_RBUFSIZE):
346 super(ReceivableProtocol, self).__init__(self.read, write,
347 report_activity)
345 def __init__(self, recv, write, close=None, report_activity=None,
346 rbufsize=_RBUFSIZE):
347 super(ReceivableProtocol, self).__init__(
348 self.read, write, close=close, report_activity=report_activity)
348349 self._recv = recv
349350 self._rbuf = BytesIO()
350351 self._rbufsize = rbufsize