We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3ed7c commit b9c43d7Copy full SHA for b9c43d7
Doc/tools/check-epub.py
@@ -10,14 +10,14 @@ def main() -> int:
10
with Path("Doc/epubcheck.txt").open(encoding="UTF-8") as f:
11
warnings = [warning.split(" - ") for warning in f.read().splitlines()]
12
13
- fatal_warnings = [warning for warning in warnings if warning[0] == "FATAL"]
+ fatal_errors = [warning for warning in warnings if warning[0] == "FATAL"]
14
15
- if fatal_warnings:
+ if fatal_errors:
16
print("\nError: must not contain fatal errors:\n")
17
- for warning in fatal_warnings:
+ for warning in fatal_errors:
18
print(" - ".join(warning))
19
20
- return len(fatal_warnings)
+ return len(fatal_errors)
21
22
23
if __name__ == "__main__":
0 commit comments