diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-04-16 01:38:40 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-04-16 01:38:40 (GMT) |
commit | 863ac44b74cd66f7d289748816d65c65808c149b (patch) | |
tree | 8536f8a72110b9996cb9e6746b6bb4cf3cb73733 /Lib/asynchat.py | |
parent | c86c1b88f96ec48e5502b9b8ba5cc833f57ce476 (diff) | |
download | cpython-863ac44b74cd66f7d289748816d65c65808c149b.zip cpython-863ac44b74cd66f7d289748816d65c65808c149b.tar.gz cpython-863ac44b74cd66f7d289748816d65c65808c149b.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r-- | Lib/asynchat.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 762070f..e1c97949b 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -66,10 +66,10 @@ class async_chat (asyncore.dispatcher): def collect_incoming_data(self, data): raise NotImplementedError, "must be implemented in subclass" - + def found_terminator(self): raise NotImplementedError, "must be implemented in subclass" - + def set_terminator (self, term): "Set the input delimiter. Can be a fixed string of any length, an integer, or None" self.terminator = term @@ -291,7 +291,7 @@ class fifo: # regex: 14035/s def find_prefix_at_end (haystack, needle): - l = len(needle) - 1 - while l and not haystack.endswith(needle[:l]): - l -= 1 - return l + l = len(needle) - 1 + while l and not haystack.endswith(needle[:l]): + l -= 1 + return l |