aboutsummaryrefslogtreecommitdiff
path: root/contrib/zmq/zmq_sub.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/zmq/zmq_sub.py')
-rwxr-xr-xcontrib/zmq/zmq_sub.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/zmq/zmq_sub.py b/contrib/zmq/zmq_sub.py
index e462198bfe..4839f401b1 100755
--- a/contrib/zmq/zmq_sub.py
+++ b/contrib/zmq/zmq_sub.py
@@ -11,6 +11,11 @@ import binascii
import asyncio, zmq, zmq.asyncio
import signal
import struct
+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)
port = 28332