mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
[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.
This commit is contained in:
parent
cc5f5b2686
commit
7dd5f3cf69
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue