Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7dd5f3c

Browse files
committed
[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.
1 parent cc5f5b2 commit 7dd5f3c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/asynchat.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ def __init__ (self, conn=None):
6464
self.producer_fifo = fifo()
6565
asyncore.dispatcher.__init__ (self, conn)
6666

67+
def collect_incoming_data(self, data):
68+
raise NotImplementedError, "must be implemented in subclass"
69+
70+
def found_terminator(self):
71+
raise NotImplementedError, "must be implemented in subclass"
72+
6773
def set_terminator (self, term):
6874
"Set the input delimiter. Can be a fixed string of any length, an integer, or None"
6975
self.terminator = term

0 commit comments

Comments
 (0)