Skip to content

Commit e5610bb

Browse files
committed
Rename helper variable to message
1 parent 7a170c1 commit e5610bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tools/check-epub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ def main() -> int:
88
raise RuntimeError(wrong_directory_msg)
99

1010
with Path("Doc/epubcheck.txt").open(encoding="UTF-8") as f:
11-
warnings = [warning.split(" - ") for warning in f.read().splitlines()]
11+
messages = [message.split(" - ") for message in f.read().splitlines()]
1212

13-
fatal_errors = [warning for warning in warnings if warning[0] == "FATAL"]
13+
fatal_errors = [message for message in messages if message[0] == "FATAL"]
1414

1515
if fatal_errors:
1616
print("\nError: must not contain fatal errors:\n")

0 commit comments

Comments
 (0)