[Python-checkins] CVS: python/dist/src/Lib asynchat.py,1.15,1.16
A.M. Kuchling
akuchling@users.sourceforge.net
Fri, 08 Mar 2002 10:27:15 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv23896
Modified Files:
asynchat.py
Log Message:
[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.
Index: asynchat.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asynchat.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** asynchat.py 8 Apr 2001 07:23:44 -0000 1.15
--- asynchat.py 8 Mar 2002 18:27:11 -0000 1.16
***************
*** 65,68 ****
--- 65,74 ----
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"