mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
python3.3 http.client wants ProxyingRecord.readinto
This commit is contained in:
parent
b6774da603
commit
f2b501ca35
@ -227,6 +227,11 @@ class ProxyingRecorder(object):
|
||||
self._update(hunk)
|
||||
return hunk
|
||||
|
||||
def readinto(self, b):
|
||||
n = self.fp.readinto(b)
|
||||
self._update(b[:n])
|
||||
return n
|
||||
|
||||
def readline(self, size=-1):
|
||||
# XXX depends on implementation details of self.fp.readline(), in
|
||||
# particular that it doesn't call self.fp.read()
|
||||
|
Loading…
x
Reference in New Issue
Block a user