From 6665e5118c66ed3a0b35a2695209a952dbe6ac7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= Date: Sun, 4 Dec 2022 15:41:53 +0100 Subject: Make utility script file PEP8 compliant. --- scripts/utility.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/utility.py b/scripts/utility.py index 6ce225b4..d816e3fd 100644 --- a/scripts/utility.py +++ b/scripts/utility.py @@ -8,6 +8,7 @@ import os + def unpack_output_file(path): """ Unpack an output file into objects contining the line number, the text, @@ -28,6 +29,7 @@ def unpack_output_file(path): text = text.replace('\\t', '\t') yield entry(text, token, linenumber + 1) + def process_output_files(root_directory, callback): """ Process all output files in a directory using the provided callback. @@ -41,7 +43,7 @@ def process_output_files(root_directory, callback): for file in files: if not file.endswith('.output'): continue - + path = os.path.join(dir, file) if not callback(path): errors += 1 -- cgit v1.2.1