Skip to content

Commit e24957d

Browse files
committed
Use compat.string_types instead of str
1 parent e3cefee commit e24957d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/excel/_odfreader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pandas
2+
from pandas import compat
23
from pandas.io.parsers import TextParser
34

45

@@ -37,7 +38,7 @@ def get_sheet_by_name(self, name):
3738
def get_sheet(self, name):
3839
"""Given a sheet name or index, return the root ODF Table node
3940
"""
40-
if isinstance(name, str):
41+
if isinstance(name, compat.string_types):
4142
return self.get_sheet_by_name(name)
4243
elif isinstance(name, int):
4344
return self.get_sheet_by_index(name)

0 commit comments

Comments
 (0)