Skip to content

Commit a77a4c7

Browse files
committed
implement suggestions @WillAyd
1 parent 747311e commit a77a4c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/io/excel/_xlrd.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ def __init__(self, filepath_or_buffer):
2929
". Current version " + xlrd.__VERSION__)
3030

3131
self._engine = xlrd
32-
super(_XlrdReader, self).__init__(filepath_or_buffer)
32+
super().__init__(filepath_or_buffer)
3333

3434
@property
3535
def _workbook_class(self):
36-
return self._engine.Book
36+
from xlrd import Book
37+
return Book
3738

3839
def load_workbook(self, filepath_or_buffer):
3940

0 commit comments

Comments
 (0)