summaryrefslogtreecommitdiff
path: root/Lib/asynchat.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-03-08 18:27:11 +0000
committerAndrew M. Kuchling <amk@amk.ca>2002-03-08 18:27:11 +0000
commit863bab94f10fbf3a6f6a6c0506fd0f9bed20053d (patch)
tree96a1b64d0125127183dd93de205b752371ee3128 /Lib/asynchat.py
parent03f59a910c3dee03bfe4503c21654293b9d2cc53 (diff)
downloadcpython-863bab94f10fbf3a6f6a6c0506fd0f9bed20053d.tar.gz
[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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py
index 1f9fc6839b..3b2b37d978 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