(self, term)
Set the input delimiter.

        Can be a fixed string of any length, an integer, or None.
Set the input delimiter.
Set the input delimiter .
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
def set_terminator ( self , term ) : 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