Skip to content

Commit 62a0e5b

Browse files
committed
Made local import compatible with py3
1 parent e111e0c commit 62a0e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ def formaturl(url, format="default"):
17791779
# Wrapper for the MbedTermnal functionality
17801780
def mbed_sterm(port, baudrate=9600, echo=True, reset=False, sterm=False):
17811781
try:
1782-
from mbed_terminal import MbedTerminal
1782+
from .mbed_terminal import MbedTerminal
17831783
except (IOError, ImportError, OSError):
17841784
error("The serial terminal functionality requires that the 'mbed-terminal' python module is installed.\nYou can install mbed-terminal by running 'pip install mbed-terminal'.", 1)
17851785

0 commit comments

Comments
 (0)