def peek_error_code(): # type: () -> int return m2.err_peek_error()
def _m2_check_err(self, r=None, cls=TLSError): if m2.err_peek_error(): err = m2.err_reason_error_string(m2.err_get_error()) raise cls(err) return r
def peek_error_code(): return m2.err_peek_error()