Esempio n. 1
0
def packb(o, *, 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_packb(o, use_bin_type=use_bin_type, encoding=encoding, unicode_errors=unicode_errors, **kwargs)
    except Exception as e:
        raise PackException(e)
Esempio n. 2
0
def packb(o, *, 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_packb(o, use_bin_type=use_bin_type, encoding=encoding, unicode_errors=unicode_errors, **kwargs)
    except Exception as e:
        raise PackException(e)