Skip to content

Commit f38577a

Browse files
committed
Move the Python version detection to core.py
1 parent f6430d0 commit f38577a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

ev3dev/auto.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import platform
22
import sys
33

4-
# -----------------------------------------------------------------------------
5-
6-
if sys.version_info < (3,4):
7-
raise SystemError('Must be using Python 3.4 or higher')
8-
94
# -----------------------------------------------------------------------------
105
# Guess platform we are running on
116

ev3dev/core.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@
2828

2929
# ~autogen
3030

31+
# -----------------------------------------------------------------------------
32+
33+
import sys
34+
35+
if sys.version_info < (3,4):
36+
raise SystemError('Must be using Python 3.4 or higher')
37+
38+
# -----------------------------------------------------------------------------
39+
3140
import os
3241
import io
3342
import fnmatch

0 commit comments

Comments
 (0)