(s, casefold=False)
return binascii.unhexlify(s)
Decode a Base16 encoded byte string.

    s is the byte string to decode.  Optional casefold is a flag
    specifying whether a lowercase alphabet is acceptable as input.
    For security purposes, the default is False.

    The decoded byte string is returned.  binascii.Error is raised if
    s were incorrectly padded or if there are non-alphabet characters
    present in the string.
Decode a Base16 encoded byte string.
Decode a Base16 encoded byte string .
def b16decode(s, casefold=False):
    """Decode a Base16 encoded byte string.

    s is the byte string to decode.  Optional casefold is a flag
    specifying whether a lowercase alphabet is acceptable as input.
    For security purposes, the default is False.

    The decoded byte string is returned.  binascii.Error is raised if
    s were incorrectly padded or if there are non-alphabet characters
    present in the string.
    """
    if not isinstance(s, bytes_types):
        raise TypeError("expected bytes, not %s" % s.__class__.__name__)
    if casefold:
        s = s.upper()
    if re.search(b'[^0-9A-F]', s):
        raise binascii.Error('Non-base16 digit found')
    return binascii.unhexlify(s)
def b16decode ( s , casefold = False ) : if not isinstance ( s , bytes_types ) : raise TypeError ( "expected bytes, not %s" % s . __class__ . __name__ ) if casefold : s = s . upper ( ) if re . search ( b'[^0-9A-F]' , s ) : raise binascii . Error ( 'Non-base16 digit found' ) return binascii . unhexlify ( s )