(self, token)
return self
Set value to Single token.
Set value to Single token.
Set value to Single token .
def from_token(self, token):
        """Set value to Single token."""
        if bytearray(token)[0] != ord(tk.T_SINGLE):
            raise ValueError('%s is not a Single token.' % repr(token))
        self._buffer[:] = token[-4:]
        return self
def from_token ( self , token ) : if bytearray ( token ) [ 0 ] != ord ( tk . T_SINGLE ) : raise ValueError ( '%s is not a Single token.' % repr ( token ) ) self . _buffer [ : ] = token [ - 4 : ] return self