Skip to content

Commit 1988a72

Browse files
committed
Added warning message about Mbed OS Py3 compatability
1 parent 53c06cc commit 1988a72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mbed/mbed.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2987,6 +2987,10 @@ def main():
29872987
log(ver+"\n")
29882988
sys.exit(0)
29892989

2990+
# Python 3 backwards compatability warning
2991+
if sys.version_info[0] == 3:
2992+
warning("Usage of Python 3 requires Mbed OS >= v5.9")
2993+
29902994
pargs, remainder = parser.parse_known_args()
29912995
status = 1
29922996

0 commit comments

Comments
 (0)