class_docstr: This is an abstract class.  You must derive from this class, and add
  the two methods collect_incoming_data() and found_terminator()
class_docstr_tok: ["This","is","an","abstract","class",".","You","must","derive","from","this","class",",","and","add","the","two","methods","collect_incoming_data","(",")","and","found_terminator","(",")"]
docstr: Set the input delimiter.
  
  Can be a fixed string of any length, an integer, or None.
docstr_tok: ["Set","the","input","delimiter",".","Can","be","a","fixed","string","of","any","length",",","an","integer",",","or","None","."]
code: def set_terminator(self, term):
      """Set the input delimiter.
  
      Can be a fixed string of any length, an integer, or None.
      """
      if isinstance(term, str) and self.use_encoding:
          term = bytes(term, self.encoding)
      elif isinstance(term, int) and term < 0:
          raise ValueError(
              "the number of received bytes must be positive"
          )
      self.terminator = term
  
imports: import asyncore
  from collections import deque
  from warnings import _deprecated
label_desc: Use image node_id 6 for calling the async_chat obj's underlying member method code with example usage: obj.set_terminator(term) without return types