def get_serial(self):
        """
        Get the serial number.

        The serial number is formatted as a hexadecimal number encoded in
        ASCII.

        :return: The serial number.
        :rtype: :py:class:`bytes`
        """
        bio = _new_mem_buf()

        result = _lib.i2a_ASN1_INTEGER(bio, self._revoked.serialNumber)
        if 0 < result:
            # TODO: This is untested.
            _raise_current_error()

        return _bio_to_string(bio)
dataset/ETHPy150Open pyca/pyopenssl/src/OpenSSL/crypto.py/Revoked.get_serial/swapped operands of `<`