X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=m_lib%2Ftty_menu.py;h=06e756e157c78edf2883976da04629bc3576ccdb;hb=74e8ff73da3efcb4e78358825b0d6b610197f721;hp=897ecc9a8b2764ef02c1db51f4f03bbaef39152d;hpb=fb3af94919a9ee18ba1c35f927f19837f057fa1f;p=m_lib.git diff --git a/m_lib/tty_menu.py b/m_lib/tty_menu.py index 897ecc9..06e756e 100755 --- a/m_lib/tty_menu.py +++ b/m_lib/tty_menu.py @@ -6,6 +6,12 @@ from __future__ import print_function import string +try: + raw_input +except NameError: # Python 3 + raw_input = input + + def hmenu(prompt, astring): """ Writes prompt and read result