Skip to content

Commit 6f0149e

Browse files
authored
Merge pull request #860 from kpj/fix-get_filepath_or_buffer
Fix usage of pandas.io.common.get_filepath_or_buffer
2 parents 90f155a + d5903db commit 6f0149e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas_datareader/compat/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None, compression=None):
4040
if isinstance(filepath_or_buffer, dict):
4141
return filepath_or_buffer, encoding, compression
4242

43-
return com.get_filepath_or_buffer(
43+
tmp = com._get_filepath_or_buffer(
4444
filepath_or_buffer, encoding=encoding, compression=None
4545
)
46+
return tmp.filepath_or_buffer, tmp.encoding, tmp.compression
4647

4748

4849
string_types = (str,)

0 commit comments

Comments
 (0)