laywerrobot/lib/python3.6/site-packages/pandas/tests/io/msgpack/common.py
2020-08-27 21:55:39 +02:00

10 lines
251 B
Python

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()