]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/tty_menu.py
Move prerelease-tag and release to devscripts
[m_lib.git] / m_lib / tty_menu.py
index 06e756e157c78edf2883976da04629bc3576ccdb..d6fd92069f1f20ebd8a2400721337a57fb5d27bd 100755 (executable)
@@ -3,7 +3,6 @@
 
 
 from __future__ import print_function
-import string
 
 
 try:
@@ -38,8 +37,8 @@ def vmenu(item_list, prompt, format = "%d. %s"):
    result = raw_input(prompt)
 
    try:
-      result = string.atoi(result)
-   except string.atoi_error:
+      result = int(result)
+   except ValueError:
       result = -1
 
    return result