X-Git-Url: https://git.phdru.name/?p=m_lib.git;a=blobdiff_plain;f=m_lib%2Ftty_menu.py;h=06e756e157c78edf2883976da04629bc3576ccdb;hp=897ecc9a8b2764ef02c1db51f4f03bbaef39152d;hb=31d88f65f0df3d05f8a7c65b743f301b6c6985c2;hpb=fea5b1d068bc94adce899a804a643bf24b8a9777 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