Skip to content

Commit fe0a567

Browse files
authored
Update pickle.py
1 parent ac8f328 commit fe0a567

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pandas/io/pickle.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77

88
from pandas._typing import FilePathOrBuffer
99

10-
from pandas.io.common import (
11-
get_filepath_or_buffer as _get_filepath_or_buffer,
12-
get_handle,
13-
)
10+
from pandas.io.common import get_filepath_or_buffer, get_handle
1411

1512

1613
def to_pickle(
@@ -77,7 +74,7 @@ def to_pickle(
7774
>>> import os
7875
>>> os.remove("./dummy.pkl")
7976
"""
80-
fp_or_buf, _, compression, should_close = _get_filepath_or_buffer(
77+
fp_or_buf, _, compression, should_close = get_filepath_or_buffer(
8178
filepath_or_buffer, compression=compression, mode="wb"
8279
)
8380
if not isinstance(fp_or_buf, str) and compression == "infer":
@@ -160,7 +157,7 @@ def read_pickle(
160157
>>> import os
161158
>>> os.remove("./dummy.pkl")
162159
"""
163-
fp_or_buf, _, compression, should_close = _get_filepath_or_buffer(
160+
fp_or_buf, _, compression, should_close = get_filepath_or_buffer(
164161
filepath_or_buffer, compression=compression
165162
)
166163
if not isinstance(fp_or_buf, str) and compression == "infer":

0 commit comments

Comments
 (0)