File tree 2 files changed +4
-4
lines changed
2 files changed +4
-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 ):
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ split_penalty_after_opening_bracket = 1000000
57
57
split_penalty_logical_operator = 30
58
58
59
59
[tool:pytest]
60
+ python_files = test_excel.py
60
61
minversion = 4.0.2
61
62
testpaths = pandas
62
63
markers =
You can’t perform that action at this time.
0 commit comments