Skip to content

Commit 68da604

Browse files
redpoint13bashtage
authored andcommitted
StringIO in pandas.compat change to import from io
1 parent 44ee8c8 commit 68da604

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

pandas_datareader/enigma.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import time
33

4-
from pandas.compat import StringIO
4+
from io import StringIO
55
import pandas.compat as compat
66
import pandas as pd
77

pandas_datareader/famafrench.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import datetime as dt
22
import re
33
import tempfile
4+
from io import StringIO
45
from zipfile import ZipFile
56

67
from pandas import read_csv, to_datetime
7-
from pandas.compat import lmap, StringIO
8+
from pandas.compat import lmap
89

910
from pandas_datareader.base import _BaseReader
1011

pandas_datareader/moex.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import datetime as dt
44

55
import pandas as pd
6-
from pandas.compat import StringIO
76

7+
from io import StringIO
88
from pandas_datareader.base import _DailyBaseReader
99
from pandas_datareader.compat import is_list_like
1010

pandas_datareader/nasdaq_trader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from ftplib import FTP, all_errors
2+
from io import StringIO
23
from pandas import read_csv
34
from pandas_datareader._utils import RemoteDataError
4-
from pandas.compat import StringIO
55

66
import time
77
import warnings

0 commit comments

Comments
 (0)