Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions mbf_pandas_msgpack/packers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,19 @@
from pandas.errors import PerformanceWarning
except ImportError:
from pandas.core.common import PerformanceWarning
from pandas.io.common import get_filepath_or_buffer
from pandas.core.internals import BlockManager, make_block, _safe_reshape

from pandas.core.internals import BlockManager, make_block
import pandas.core.internals as internals

try:
from pandas.io.common import get_filepath_or_buffer
except ImportError:
from pandas.io.common import _get_filepath_or_buffer as get_filepath_or_buffer
try:
from pandas.core.internals import _safe_reshape
except ImportError:
from pandas.core.internals import safe_reshape as _safe_reshape

from mbf_pandas_msgpack import _is_pandas_legacy_version
from mbf_pandas_msgpack.msgpack import Unpacker as _Unpacker, Packer as _Packer, ExtType
from mbf_pandas_msgpack._move import (
Expand Down