Skip to content

Commit 714cce1

Browse files
committed
pylint_all: Do not rename exit()
1 parent 74c73d3 commit 714cce1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/pylint_all.py

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

77
from argparse import ArgumentParser
88
from os import path, walk
9-
from sys import exit as exitwith
9+
from sys import exit
1010
from textwrap import dedent
1111
import subprocess
1212

@@ -80,9 +80,9 @@ def main():
8080
(failed_count, total_count) = pylint_all_filenames(options.dev_mode, rootdirs)
8181

8282
if failed_count != 0:
83-
exitwith("pylint failed on {}/{} files.".format(failed_count, total_count))
83+
exit(f"pylint failed on {failed_count}/{total_count} files.")
8484
else:
85-
print("Successfully tested {} files.".format(total_count))
85+
print(f"Successfully tested {total_count} files.")
8686

8787

8888
if __name__ == "__main__":

0 commit comments

Comments
 (0)