Skip to content

Commit c04cf5b

Browse files
authored
Update __init__.py
Fix no module exception in python3.7
1 parent 92b606d commit c04cf5b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

randomAccessReader/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
# =============
1111

1212
import csv
13-
from io import StringIO
1413
import six
1514

15+
try:
16+
from StringIO import StringIO
17+
except ImportError:
18+
from io import StringIO
1619
# ==========
1720
# classes
1821
# ==========

0 commit comments

Comments
 (0)