From b5e98ee831f1270e663c0e17023223e2467d30aa Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Fri, 22 Mar 2019 01:42:05 +0200 Subject: [PATCH] use sys.exit instead of exit --- setup.py | 2 +- winping/__main__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 3db4251..716734f 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ long_description = f.read() setup(name='winping', - version='0.2.0', + version='0.2.1', description="Ping implementation which utilizes Windows ICMP API", url='https://github.com/Snawoot/winping', author='Vladislav Yarmak', diff --git a/winping/__main__.py b/winping/__main__.py index 145b311..bebb5ab 100644 --- a/winping/__main__.py +++ b/winping/__main__.py @@ -83,7 +83,7 @@ def main(): print("Ping request could not find host %s. " "Please check the name and try again." % (args.address), file=sys.stderr) - exit(3) + sys.exit(3) ip = ai_list[0][4][0] af = ai_list[0][0] ping_fun, Handle = ((ping, IcmpHandle) if af == socket.AF_INET