From 581208b2ffeeb2a2128aee0741fa3fd9e46358e2 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 6 Aug 2025 17:50:53 +0100 Subject: Run black on all first party python code --- scripts/update_chitu.py | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'scripts/update_chitu.py') diff --git a/scripts/update_chitu.py b/scripts/update_chitu.py index cf7fcfe9..62145371 100755 --- a/scripts/update_chitu.py +++ b/scripts/update_chitu.py @@ -11,14 +11,16 @@ import uuid import sys import hashlib + def calculate_crc(contents, seed): - accumulating_xor_value = seed; + accumulating_xor_value = seed for i in range(0, len(contents), 4): - value = struct.unpack('I", 0x443D2D3F)) @@ -88,15 +90,15 @@ def encode_file(input, output_file, file_length): # write the file_key output_file.write(struct.pack(" ") @@ -132,5 +135,6 @@ def main(): print("Encoding complete.") -if __name__ == '__main__': + +if __name__ == "__main__": main() -- cgit v1.2.3-70-g09d2