Skip to content

Commit fe62ba3

Browse files
machinekoderjstasiak
authored andcommitted
add import error for Python <= 3.3 (python-zeroconf#123)
1 parent 0622570 commit fe62ba3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zeroconf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
"Error", "InterfaceChoice", "ServiceStateChange",
4747
]
4848

49+
if sys.version_info <= (3, 3):
50+
raise ImportError('''
51+
Python version > 3.3 required for python-zeroconf.
52+
If you need support for Python 2 or Python 3.3 please use version 19.1
53+
''')
4954

5055
log = logging.getLogger(__name__)
5156
log.addHandler(logging.NullHandler())

0 commit comments

Comments
 (0)