summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2022-12-04 15:41:53 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2022-12-04 15:41:53 +0100
commit6665e5118c66ed3a0b35a2695209a952dbe6ac7d (patch)
treeab3bcde6c7021e959826e1c3a9ae37cd96bb71fa /scripts
parent607fba8c7221507d845735adac93e71d4970d27d (diff)
downloadpygments-git-6665e5118c66ed3a0b35a2695209a952dbe6ac7d.tar.gz
Make utility script file PEP8 compliant.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/utility.py4
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