Fix typo
This commit is contained in:
parent
d05e04e73a
commit
dc1d036f02
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue