Skip to content

Commit 1fef008

Browse files
committed
Use str instead of compat.string_types
Pandas dropped support for Python 2.
1 parent 60a5bc1 commit 1fef008

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/io/excel/_odfreader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pandas as pd
2-
from pandas import compat
32

43
from pandas.io.parsers import TextParser
54

@@ -39,7 +38,7 @@ def get_sheet_by_name(self, name):
3938
def _get_sheet(self, name):
4039
"""Given a sheet name or index, return the root ODF Table node
4140
"""
42-
if isinstance(name, compat.string_types):
41+
if isinstance(name, str):
4342
return self.get_sheet_by_name(name)
4443
elif isinstance(name, int):
4544
return self.get_sheet_by_index(name)

0 commit comments

Comments
 (0)