Skip to content

Commit 6164200

Browse files
author
Guido van Rossum
committed
Make fail() in main.py use exit code 2
This is in line with the recommendation from python#6003. (It is called if there's something wrong with a filename.)
1 parent 2baebda commit 6164200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,4 +1056,4 @@ def parse_section(prefix: str, template: Options,
10561056

10571057
def fail(msg: str) -> None:
10581058
sys.stderr.write('%s\n' % msg)
1059-
sys.exit(1)
1059+
sys.exit(2)

0 commit comments

Comments
 (0)