From e137b48bab3b4d8f1a9bef3329d6e28ae0e969f2 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Fri, 27 Oct 2023 16:16:07 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- wc24encrypt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wc24encrypt.py b/wc24encrypt.py index e3fc362..2cd3cc7 100644 --- a/wc24encrypt.py +++ b/wc24encrypt.py @@ -82,9 +82,8 @@ def u32(data): elif args.type[0] == "dec": processed = data -content = {} +content = {"magic": b"WC24" if args.type[0] == "enc" else u32(0)} -content["magic"] = b"WC24" if args.type[0] == "enc" else u32(0) content["version"] = u32(1) if args.type[0] == "enc" else u32(0) content["filler"] = u32(0) content["crypt_type"] = u8(1) if args.type[0] == "enc" else u8(0)