Skip to content

Commit 377d063

Browse files
committed
Enforce the use of Python 3.4 or higher
1 parent ea08384 commit 377d063

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ev3dev/auto.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import platform
2+
import sys
3+
4+
# -----------------------------------------------------------------------------
5+
6+
if sys.version_info < (3,4):
7+
raise SystemError('Must be using Python 3.4 or higher')
28

39
# -----------------------------------------------------------------------------
410
# Guess platform we are running on
11+
512
def current_platform():
613
machine = platform.machine()
714
if machine == 'armv5tejl':
@@ -11,6 +18,8 @@ def current_platform():
1118
else:
1219
return 'unsupported'
1320

21+
# -----------------------------------------------------------------------------
22+
1423
if current_platform() == 'brickpi':
1524
from .brickpi import *
1625
else:

0 commit comments

Comments
 (0)