Skip to content

Commit e347958

Browse files
committed
Make generate_code.py Py3-friendly
1 parent ef9c42d commit e347958

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/src/generate_code.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
"""This file generates `generated.pyx` which is then included in `../algos.pyx`
22
during building. To regenerate `generated.pyx`, just run:
33
4-
`python2 generate_code.py`.
4+
`python generate_code.py`.
55
66
"""
77

88
from __future__ import print_function
9-
# we only need to be able to run this file on 2.7
10-
# don't introduce a pandas/pandas.compat import
11-
# or we get a bootstrapping problem
12-
from StringIO import StringIO
9+
from pandas.compat import StringIO
1310
import numpy as np
1411

1512
_int64_max = np.iinfo(np.int64).max

0 commit comments

Comments
 (0)