Example #1
0
def pack(o, stream, *, use_bin_type=False, encoding=None, unicode_errors=None, **kwargs):
    assert use_bin_type is False
    assert encoding is None
    assert unicode_errors is None
    try:
        return mp_pack(o, stream, use_bin_type=use_bin_type, encoding=encoding, unicode_errors=unicode_errors, **kwargs)
    except Exception as e:
        raise PackException(e)
Example #2
0
def pack(o, stream, *, use_bin_type=False, encoding=None, unicode_errors=None, **kwargs):
    assert use_bin_type is False
    assert encoding is None
    assert unicode_errors is None
    try:
        return mp_pack(o, stream, use_bin_type=use_bin_type, encoding=encoding, unicode_errors=unicode_errors, **kwargs)
    except Exception as e:
        raise PackException(e)