Merge pull request #405 from squeaky-pl/feature/add-sys-exit-to-file-contents-sorter

Rebased add sys.exit(main()) to file_contents_sorter.py
This commit is contained in:
Anthony Sottile 2019-08-03 11:57:05 -07:00 committed by GitHub
commit 696c403f74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@ conflicts and keep the file nicely ordered.
from __future__ import print_function from __future__ import print_function
import argparse import argparse
import sys
from typing import IO from typing import IO
from typing import Optional from typing import Optional
from typing import Sequence from typing import Sequence
@ -53,3 +54,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
retv |= ret_for_file retv |= ret_for_file
return retv return retv
if __name__ == '__main__':
sys.exit(main())