mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
pylint_all: Do not rename exit()
This commit is contained in:
parent
74c73d396a
commit
714cce175f
@ -6,7 +6,7 @@ Runs pylint on all Python files in project directories known to contain Python s
|
||||
|
||||
from argparse import ArgumentParser
|
||||
from os import path, walk
|
||||
from sys import exit as exitwith
|
||||
from sys import exit
|
||||
from textwrap import dedent
|
||||
import subprocess
|
||||
|
||||
@ -80,9 +80,9 @@ def main():
|
||||
(failed_count, total_count) = pylint_all_filenames(options.dev_mode, rootdirs)
|
||||
|
||||
if failed_count != 0:
|
||||
exitwith("pylint failed on {}/{} files.".format(failed_count, total_count))
|
||||
exit(f"pylint failed on {failed_count}/{total_count} files.")
|
||||
else:
|
||||
print("Successfully tested {} files.".format(total_count))
|
||||
print(f"Successfully tested {total_count} files.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user