laywerrobot/lib/python3.6/site-packages/pandas/tests/io/msgpack/common.py

11 lines
251 B
Python
Raw Normal View History

2020-08-27 21:55:39 +02:00
from pandas.compat import PY3
# array compat
if PY3:
frombytes = lambda obj, data: obj.frombytes(data)
tobytes = lambda obj: obj.tobytes()
else:
frombytes = lambda obj, data: obj.fromstring(data)
tobytes = lambda obj: obj.tostring()