Skip to content

Commit 3e92a9e

Browse files
committed
Modernized string formating.
1 parent 1904846 commit 3e92a9e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

structure_threader/sanity_checks/sanity.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ def cpu_checker(asked_threads):
2424
try:
2525
if int(asked_threads) > os.cpu_count():
2626
print("WARNING: Number of specified threads is higher than the "
27-
"available ones. Adjusting number of threads to %s, "
27+
"available ones. Adjusting number of threads to {}, "
2828
"which is the total number of CPUs (physical and logical) on "
29-
"this machine." %
30-
os.cpu_count())
29+
"this machine.".format(os.cpu_count()))
3130
threads = os.cpu_count()
3231
else:
3332
threads = asked_threads

0 commit comments

Comments
 (0)