diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-09 22:57:02 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-28 15:18:14 +0200 |
commit | 25cd520fc429c464846b0f986104db45b3bfaebb (patch) | |
tree | 3b8055f06c0b70d0cdd2431d2597f6173f3d643d /contrib/zmq | |
parent | f088a1bb392eaecd912ff9bca6967a8f4765c2b7 (diff) |
Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs
Diffstat (limited to 'contrib/zmq')
-rwxr-xr-x | contrib/zmq/zmq_sub.py | 2 | ||||
-rwxr-xr-x | contrib/zmq/zmq_sub3.4.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/zmq/zmq_sub.py b/contrib/zmq/zmq_sub.py index ea398a27ea..5cc19761d4 100755 --- a/contrib/zmq/zmq_sub.py +++ b/contrib/zmq/zmq_sub.py @@ -32,7 +32,7 @@ import sys if not (sys.version_info.major >= 3 and sys.version_info.minor >= 5): print("This example only works with Python 3.5 and greater") - exit(1) + sys.exit(1) port = 28332 diff --git a/contrib/zmq/zmq_sub3.4.py b/contrib/zmq/zmq_sub3.4.py index 1cb7eec0c0..bfb7ea9eae 100755 --- a/contrib/zmq/zmq_sub3.4.py +++ b/contrib/zmq/zmq_sub3.4.py @@ -36,7 +36,7 @@ import sys if not (sys.version_info.major >= 3 and sys.version_info.minor >= 4): print("This example only works with Python 3.4 and greater") - exit(1) + sys.exit(1) port = 28332 |