Skip to content

Commit ee31526

Browse files
committed
fix logic error
1 parent fc3e2e9 commit ee31526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyexcel_io/csvbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def close(self):
237237
"""
238238
This call close the file handle
239239
"""
240-
if not (isinstance(self.f, StringIO) and isinstance(self.f, BytesIO)):
240+
if not (isinstance(self.f, StringIO) or isinstance(self.f, BytesIO)):
241241
self.f.close()
242242
elif not self.single_sheet_in_book:
243243
self.f.write("---pyexcel---\r\n")

0 commit comments

Comments
 (0)