|
|
|
@ -14,7 +14,7 @@ class CappedBufferedReader(io.BufferedReader):
|
|
|
|
|
return super().read(size)
|
|
|
|
|
|
|
|
|
|
def seek(self, offset, whence=os.SEEK_SET):
|
|
|
|
|
if self.capped_size is not NOne:
|
|
|
|
|
if self.capped_size is not None:
|
|
|
|
|
if offset == 0 and whence == os.SEEK_END:
|
|
|
|
|
if self.capped_size < 0:
|
|
|
|
|
offset = 0
|
|
|
|
|