Skip to content

Commit 15886f8

Browse files
Merge pull request #900 from ARMmbed/btool-47_python3_warning
Adjust python 3 warning text and behaviour
2 parents cf85f46 + a484d7c commit 15886f8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mbed/mbed.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3426,7 +3426,7 @@ def main():
34263426

34273427
# Python 3 backwards compatability warning
34283428
if sys.version_info[0] == 3:
3429-
warning("If you're using Python 3 with Mbed OS 5.8 and earlier versions, Python errors will occur when compiling, testing and exporting")
3429+
warning("Python 3 is not yet fully supported: Python errors may occur when compiling, testing and exporting")
34303430

34313431
pargs, remainder = parser.parse_known_args()
34323432
status = 1
@@ -3461,10 +3461,6 @@ def main():
34613461
if very_verbose:
34623462
traceback.print_exc(file=sys.stdout)
34633463
error("Unknown Error: %s" % e, 255)
3464-
finally:
3465-
# Warn user if Python 3 might have caused an exception.
3466-
if status and sys.version_info[0] == 3:
3467-
warning("Using Python 3 with Mbed OS 5.8 and earlier can cause errors with compiling, testing and exporting");
34683464

34693465
sys.exit(status or 0)
34703466

0 commit comments

Comments
 (0)