From 1babb268d681fc983f56e7c407d175f106dc0e08 Mon Sep 17 00:00:00 2001 From: Artturi Ramanen Date: Thu, 14 Mar 2019 12:28:30 +0200 Subject: [PATCH] Use input() instead of raw_input() for py3 --- mbed/mbed.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mbed/mbed.py b/mbed/mbed.py index 3665caea..32625e0f 100755 --- a/mbed/mbed.py +++ b/mbed/mbed.py @@ -2326,7 +2326,10 @@ def publish(all_refs=None, msg=None, top=True): if msg: repo.commit(msg) else: - raw_input('Press enter to commit and publish: ') + if sys.version_info[0] == 3: + input('Press enter to commit and publish: ') + else: + raw_input('Press enter to commit and publish: ') repo.commit() try: