Skip to content

Commit 749c106

Browse files
committed
fixup! ENH: Support bz2 compression in PY2 for c engine
1 parent b691c98 commit 749c106

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/parser.pyx

+1-2
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,7 @@ cdef class TextReader:
623623
else:
624624
content = source.read()
625625
source.close()
626-
from pandas.compat import StringIO
627-
source = StringIO(bz2.decompress(content))
626+
source = compat.StringIO(bz2.decompress(content))
628627
elif self.compression == 'zip':
629628
import zipfile
630629
zip_file = zipfile.ZipFile(source)

0 commit comments

Comments
 (0)