diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2022-12-04 15:41:53 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2022-12-04 15:41:53 +0100 |
commit | 6665e5118c66ed3a0b35a2695209a952dbe6ac7d (patch) | |
tree | ab3bcde6c7021e959826e1c3a9ae37cd96bb71fa /scripts | |
parent | 607fba8c7221507d845735adac93e71d4970d27d (diff) | |
download | pygments-git-6665e5118c66ed3a0b35a2695209a952dbe6ac7d.tar.gz |
Make utility script file PEP8 compliant.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/utility.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |