From 06e8aadc375b7ef34aa7f1b43c8e7703abaf76ec Mon Sep 17 00:00:00 2001 From: 9k01 <42490967+9k01@users.noreply.github.com> Date: Thu, 30 Nov 2023 19:59:09 +0800 Subject: [PATCH] Update __init__.py close opened file --- mobi/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mobi/__init__.py b/mobi/__init__.py index 287ed87..62c89a8 100644 --- a/mobi/__init__.py +++ b/mobi/__init__.py @@ -22,6 +22,7 @@ def parse(self): self.header = self.parseHeader(); self.records = self.parseRecordInfoList(); self.readRecord0() + self.f.close() def readRecord(self, recordnum, disable_compression=False): if self.config: