Good...Good...
This commit is contained in:
parent
e73b038c3e
commit
0e5bcd5f77
1 changed files with 2 additions and 5 deletions
|
@ -20,7 +20,6 @@ class LineBuffer():
|
|||
def _shift(self):
|
||||
count = self.offset_i - self.offset_o
|
||||
|
||||
|
||||
self.buf[0:count] = self.buf[self.offset_o:self.offset_i]
|
||||
|
||||
self.offset_i = count
|
||||
|
@ -41,7 +40,6 @@ class LineBuffer():
|
|||
|
||||
readlen = len(data)
|
||||
|
||||
|
||||
self.buf[self.offset_i:self.size] = data
|
||||
|
||||
self.offset_i += readlen
|
||||
|
@ -63,7 +61,6 @@ class LineBuffer():
|
|||
while True:
|
||||
index = self.buf.find(b'\n', self.offset_o, self.offset_i)
|
||||
|
||||
|
||||
if index < 0:
|
||||
if self._is_full():
|
||||
if self.offset_o == 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue