Skip to content

Commit 0edabb0

Browse files
committed
Fix the fix
1 parent 253aadd commit 0edabb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/excel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ def __init__(self, io, **kwds):
393393

394394
# If io is a url, want to keep the data as bytes so can't pass
395395
# to get_filepath_or_buffer()
396+
should_close = True
396397
if _is_url(self._io):
397398
io = _urlopen(self._io)
398-
should_close = True
399399
elif not isinstance(self.io, (ExcelFile, xlrd.Book)):
400400
io, _, _, should_close = get_filepath_or_buffer(self._io)
401401

0 commit comments

Comments
 (0)