(s)
return binascii.hexlify(s).upper()
Encode a byte string using Base16.

    s is the byte string to encode.  The encoded byte string is returned.
Encode a byte string using Base16.
Encode a byte string using Base16 .
def b16encode(s):
    """Encode a byte string using Base16.

    s is the byte string to encode.  The encoded byte string is returned.
    """
    if not isinstance(s, bytes_types):
        raise TypeError("expected bytes, not %s" % s.__class__.__name__)
    return binascii.hexlify(s).upper()
def b16encode ( s ) : if not isinstance ( s , bytes_types ) : raise TypeError ( "expected bytes, not %s" % s . __class__ . __name__ ) return binascii . hexlify ( s ) . upper ( )