(self, suboption)
\
        Check an incoming subnegotiation block. The parameter already has
        cut off the header like sub option number and com port option value.
\
        Check an incoming subnegotiation block. The parameter already has
        cut off the header like sub option number and com port option value.
\ Check an incoming subnegotiation block . The parameter already has cut off the header like sub option number and com port option value .
def check_answer(self, suboption):
        """\
        Check an incoming subnegotiation block. The parameter already has
        cut off the header like sub option number and com port option value.
        """
        if self.value == suboption[:len(self.value)]:
            self.state = ACTIVE
        else:
            # error propagation done in is_ready
            self.state = REALLY_INACTIVE
        if self.connection.logger:
            self.connection.logger.debug("SB Answer {} -> {!r} -> {}".format(self.name, suboption, self.state))
def check_answer ( self , suboption ) : if self . value == suboption [ : len ( self . value ) ] : self . state = ACTIVE else : # error propagation done in is_ready self . state = REALLY_INACTIVE if self . connection . logger : self . connection . logger . debug ( "SB Answer {} -> {!r} -> {}" . format ( self . name , suboption , self . state ) )