]> granicus.if.org Git - python/commitdiff
[Bug #491820] Define two abstract methods to shut up Pychecker, and for
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 8 Mar 2002 18:27:11 +0000 (18:27 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 8 Mar 2002 18:27:11 +0000 (18:27 +0000)
    documentation purposes.  These implementations are the same as the
    ones suggested by Skip in the bug report.

Lib/asynchat.py

index 1f9fc6839be63c5f27b1b897e0014e1e41f831c8..3b2b37d978c8a70a82f70df5218e5db500196996 100644 (file)
@@ -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