diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2002-03-08 18:27:11 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2002-03-08 18:27:11 (GMT) |
commit | 7dd5f3cf698a7ffb7e532719639c85f81a65dbe8 (patch) | |
tree | 4da67989c0b2500c0a8689c81c47d157b1a34fee /Lib/asynchat.py | |
parent | cc5f5b2686be248b7d78adfd5b15fba6a69ab7d1 (diff) | |
download | cpython-7dd5f3cf698a7ffb7e532719639c85f81a65dbe8.zip cpython-7dd5f3cf698a7ffb7e532719639c85f81a65dbe8.tar.gz cpython-7dd5f3cf698a7ffb7e532719639c85f81a65dbe8.tar.bz2 |
[Bug #491820] Define two abstract methods to shut up Pychecker, and for
documentation purposes. These implementations are the same as the
ones suggested by Skip in the bug report.
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r-- | Lib/asynchat.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 1f9fc68..3b2b37d 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -64,6 +64,12 @@ class async_chat (asyncore.dispatcher): self.producer_fifo = fifo() asyncore.dispatcher.__init__ (self, conn) + 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 |