From b56f6fa330807a79eb633f5c344408f91b870d90 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 11 Sep 2022 02:50:52 +0300 Subject: [PATCH] scripts: waifulib: fix zipfile init for older Python --- scripts/waifulib/zip.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/waifulib/zip.py b/scripts/waifulib/zip.py index 12f5e44a..1e4efe72 100644 --- a/scripts/waifulib/zip.py +++ b/scripts/waifulib/zip.py @@ -19,10 +19,7 @@ class ziparchive(Task.Task): outfile = self.outputs[0].path_from(self.outputs[0].ctx.launch_node()) comp = zipfile.ZIP_STORED if self.compresslevel == 0 else zipfile.ZIP_DEFLATED - with zipfile.ZipFile(outfile, mode='w', - compression=comp, compresslevel=self.compresslevel, - strict_timestamps=False) as zf: - + with zipfile.ZipFile(outfile, mode='w', compression=comp) as zf: for src in self.inputs: infile = src.path_from(src.ctx.launch_node()) arcfile = src.path_from(self.relative_to)