Skip to content

Commit

Permalink
ENH #4163 Fixed missing basestring import for py3.3 compat
Browse files Browse the repository at this point in the history
ENH #4163 Fixed missing string_types import for py3.3 compat
  • Loading branch information
mangecoeur authored and jreback committed Feb 6, 2014
1 parent 1033d5f commit 8e8d067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from __future__ import print_function
from datetime import datetime, date
import warnings
from pandas.compat import range, lzip, map, zip, raise_with_traceback
from pandas.compat import lzip, map, zip, raise_with_traceback, string_types
import numpy as np


Expand Down Expand Up @@ -444,7 +444,7 @@ def _index_name(self, index):
return _safe_col_name(self.frame.index.name)
else:
return self.prefix + '_index'
elif isinstance(index, basestring):
elif isinstance(index, string_types):
return index
else:
return None
Expand Down

0 comments on commit 8e8d067

Please sign in to comment.