From b5c995ad2c8c475ca4fb7bcccbc95d0216b8303e Mon Sep 17 00:00:00 2001 From: Howard20181 <40033067+Howard20181@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:52:07 +0800 Subject: [PATCH] Update extractWSA.py --- scripts/extractWSA.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extractWSA.py b/scripts/extractWSA.py index b32af86..a6ad527 100644 --- a/scripts/extractWSA.py +++ b/scripts/extractWSA.py @@ -68,7 +68,7 @@ with zipfile.ZipFile(wsa_zip_path) as zip: elif g.filename == 'AppxManifest.xml': g.filename = f'{name}.xml' l.extract(g, workdir / 'xml') - elif re.search(u'Images/.+\.png', g.filename) != None: + elif re.search(u'Images/.+\.png', g.filename): l.extract(g, archdir) with zipfile.ZipFile(zip_path) as zip: print(f"unzipping from {zip_path}", flush=True)