|
7 | 7 |
|
8 | 8 | from pandas._typing import FilePathOrBuffer
|
9 | 9 |
|
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 |
14 | 11 |
|
15 | 12 |
|
16 | 13 | def to_pickle(
|
@@ -77,7 +74,7 @@ def to_pickle(
|
77 | 74 | >>> import os
|
78 | 75 | >>> os.remove("./dummy.pkl")
|
79 | 76 | """
|
80 |
| - fp_or_buf, _, compression, should_close = _get_filepath_or_buffer( |
| 77 | + fp_or_buf, _, compression, should_close = get_filepath_or_buffer( |
81 | 78 | filepath_or_buffer, compression=compression, mode="wb"
|
82 | 79 | )
|
83 | 80 | if not isinstance(fp_or_buf, str) and compression == "infer":
|
@@ -160,7 +157,7 @@ def read_pickle(
|
160 | 157 | >>> import os
|
161 | 158 | >>> os.remove("./dummy.pkl")
|
162 | 159 | """
|
163 |
| - fp_or_buf, _, compression, should_close = _get_filepath_or_buffer( |
| 160 | + fp_or_buf, _, compression, should_close = get_filepath_or_buffer( |
164 | 161 | filepath_or_buffer, compression=compression
|
165 | 162 | )
|
166 | 163 | if not isinstance(fp_or_buf, str) and compression == "infer":
|
|
0 commit comments