File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ def __init__(self, filepath_or_buffer):
28
28
raise ImportError (err_msg +
29
29
". Current version " + xlrd .__VERSION__ )
30
30
31
- self ._engine = xlrd
32
31
super ().__init__ (filepath_or_buffer )
33
32
34
33
@property
@@ -37,12 +36,12 @@ def _workbook_class(self):
37
36
return Book
38
37
39
38
def load_workbook (self , filepath_or_buffer ):
40
-
39
+ from xlrd import open_workbook
41
40
if isinstance (filepath_or_buffer , (BytesIO , BufferedReader )):
42
41
data = filepath_or_buffer .read ()
43
- return self . _engine . open_workbook (file_contents = data )
42
+ return open_workbook (file_contents = data )
44
43
else :
45
- return self . _engine . open_workbook (filepath_or_buffer )
44
+ return open_workbook (filepath_or_buffer )
46
45
47
46
@property
48
47
def sheet_names (self ):
You can’t perform that action at this time.
0 commit comments