[PATCH] Use sys.exit instead of os._exit.
David Shea
dshea at redhat.com
Fri Jul 24 20:43:20 UTC 2015
On 07/24/2015 04:31 PM, Chris Lumens wrote:
> The former ensures atexit handlers get run, and pocketlint uses that to delete
> the XDG_RUNTIME_DIR it drops.
> ---
> tests/pylint/runpylint.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/pylint/runpylint.py b/tests/pylint/runpylint.py
> index 410dd8d..bd97783 100755
> --- a/tests/pylint/runpylint.py
> +++ b/tests/pylint/runpylint.py
> @@ -1,6 +1,6 @@
> #!/usr/bin/python3
>
> -import os
> +import sys
>
> from pocketlint import FalsePositive, PocketLintConfig, PocketLinter
>
> @@ -29,4 +29,4 @@ if __name__ == "__main__":
> conf = AnacondaLintConfig()
> linter = PocketLinter(conf)
> rc = linter.run()
> - os._exit(rc)
> + sys.exit(rc)
Ack.
More information about the anaconda-patches
mailing list