Skip to content

Commit

Permalink
Merge pull request #2104 from pre-commit/all-repos_autofix_exit-main-2
Browse files Browse the repository at this point in the history
exit(main()) -> raise SystemExit(main()) pt2
  • Loading branch information
asottile committed Oct 24, 2021
2 parents 26a05b5 + 28cafc2 commit c6a1bc1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion testing/gen-languages-all
Expand Up @@ -25,4 +25,4 @@ def main() -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion testing/make-archives
Expand Up @@ -80,4 +80,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion testing/zipapp/entry
Expand Up @@ -68,4 +68,4 @@ def main() -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion testing/zipapp/make
Expand Up @@ -106,4 +106,4 @@ def main() -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion testing/zipapp/python
Expand Up @@ -45,4 +45,4 @@ def main() -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())

0 comments on commit c6a1bc1

Please sign in to comment.