Commit b1a789c1 authored by Mark Peek's avatar Mark Peek

pep8 fix

parent f4947f1b
...@@ -33,6 +33,7 @@ class Sync: ...@@ -33,6 +33,7 @@ class Sync:
def __init__ (self): def __init__ (self):
self.state = 0 self.state = 0
self.last = None self.last = None
def feed (self, ch): def feed (self, ch):
if ch == self.magic[self.state]: if ch == self.magic[self.state]:
self.state += 1 self.state += 1
...@@ -44,6 +45,7 @@ class Sync: ...@@ -44,6 +45,7 @@ class Sync:
self.state = 0 self.state = 0
self.last = ch self.last = ch
return False return False
def resync (self, fdin): def resync (self, fdin):
self.state = 0 self.state = 0
give_up = 10000 give_up = 10000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment