Skip to content

Commit e111e0c

Browse files
committed
Small modifications to make mbed terminal feature py3 compatible
1 parent f168237 commit e111e0c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mbed/mbed_terminal.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
#!/usr/bin/env python2
1+
#!/usr/bin/env python
32

43
# Copyright (c) 2016 ARM Limited, All Rights Reserved
54
# SPDX-License-Identifier: Apache-2.0
@@ -43,7 +42,7 @@ def __init__(self, port, baudrate=9600, echo=True, timeout=10):
4342
self.serial.flush()
4443
self.serial.reset_input_buffer()
4544
except Exception as e:
46-
print 'error'
45+
print('error')
4746
self.serial = None
4847
return False
4948

0 commit comments

Comments
 (0)