From 773190867a4795a39a790ef78d6dbd8c3e683979 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 9 Apr 2025 08:25:46 +0530 Subject: [PATCH] ... --- src/calibre/utils/localunzip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/localunzip.py b/src/calibre/utils/localunzip.py index a225311f89..a8828c0eaf 100644 --- a/src/calibre/utils/localunzip.py +++ b/src/calibre/utils/localunzip.py @@ -202,7 +202,7 @@ def _extractall(f, path=None, file_info=None): # . fname = header.filename.replace(os.sep, '/') fname = os.path.splitdrive(fname)[1] - parts = [x for x in fname.split('/') if x not in {'', os.path.pardir, os.path.curdir}] + parts = tuple(x for x in fname.split('/') if x not in {'', os.path.pardir, os.path.curdir}) if not parts: continue if header.uncompressed_size == 0: