Skip to content

Commit

Permalink
replace exit(main()) with raise SystemExit(main())
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Oct 23, 2021
1 parent fc8e719 commit 50e3902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyupgrade/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pyupgrade._main import main

if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion pyupgrade/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,4 +948,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:


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

0 comments on commit 50e3902

Please sign in to comment.