This commit is contained in:
blank X 2021-04-08 12:50:06 +07:00
parent d05e04e73a
commit dc1d036f02
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -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