Skip to content

Commit e6b9e8b

Browse files
committed
verify-checksum-models.py: use print() for printing table
1 parent 1c8d3ef commit e6b9e8b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/verify-checksum-models.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import logging
44
import os
5-
import sys
65
import hashlib
76

87
logger = logging.getLogger("verify-checksum-models")
@@ -77,9 +76,9 @@ def sha256sum(file):
7776

7877

7978
# Print column headers for results table
80-
logger.info("filename".ljust(40) + "valid checksum".center(20) + "file missing".center(20))
81-
logger.info("-" * 80)
79+
print("filename".ljust(40) + "valid checksum".center(20) + "file missing".center(20)) # noqa: NP100
80+
print("-" * 80) # noqa: NP100
8281

8382
# Output the results as a table
8483
for r in results:
85-
sys.stdout.write(f"{r['filename']:40} {r['valid checksum']:^20} {r['file missing']:^20}\n")
84+
print(f"{r['filename']:40} {r['valid checksum']:^20} {r['file missing']:^20}") # noqa: NP100

0 commit comments

Comments
 (0)