Skip to content

Commit 1babb26

Browse files
author
Artturi Ramanen
committed
Use input() instead of raw_input() for py3
1 parent 3b43228 commit 1babb26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mbed/mbed.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2326,7 +2326,10 @@ def publish(all_refs=None, msg=None, top=True):
23262326
if msg:
23272327
repo.commit(msg)
23282328
else:
2329-
raw_input('Press enter to commit and publish: ')
2329+
if sys.version_info[0] == 3:
2330+
input('Press enter to commit and publish: ')
2331+
else:
2332+
raw_input('Press enter to commit and publish: ')
23302333
repo.commit()
23312334

23322335
try:

0 commit comments

Comments
 (0)