Skip to content

Commit 8e8d067

Browse files
mangecoeurjreback
authored andcommitted
ENH #4163 Fixed missing basestring import for py3.3 compat
ENH #4163 Fixed missing string_types import for py3.3 compat
1 parent 1033d5f commit 8e8d067

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/sql.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from __future__ import print_function
66
from datetime import datetime, date
77
import warnings
8-
from pandas.compat import range, lzip, map, zip, raise_with_traceback
8+
from pandas.compat import lzip, map, zip, raise_with_traceback, string_types
99
import numpy as np
1010

1111

@@ -444,7 +444,7 @@ def _index_name(self, index):
444444
return _safe_col_name(self.frame.index.name)
445445
else:
446446
return self.prefix + '_index'
447-
elif isinstance(index, basestring):
447+
elif isinstance(index, string_types):
448448
return index
449449
else:
450450
return None

0 commit comments

Comments
 (0)