Skip to content

Commit 01dce2e

Browse files
authored
Merge pull request #689 from cmonr/py3-warning-msg
Added warning message about Mbed OS Py3 compatability
2 parents 53c06cc + d0bf3bf commit 01dce2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mbed/mbed.py

+4
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("If you're using Python 3 with Mbed OS 5.8 and earlier versions, Python errors will occur when compiling, testing and exporting")
2993+
29902994
pargs, remainder = parser.parse_known_args()
29912995
status = 1
29922996

0 commit comments

Comments
 (0)