Commits

Jason R. Coombs  committed ae67016

Fix input on Python 3

  • Participants
  • Parent commits b87a3b2
  • Tags 8.2.1

Comments (0)

Files changed (1)

File jaraco/util/ui.py

 
 from itertools import count
 
+import six
+
 class Menu(object):
 	"""
 	A simple command-line based menu
 			print(menu_fmt.format(**vars()))
 		print()
 		try:
-			answer = int(raw_input(prompt))
+			answer = int(six.moves.input(prompt))
 			result = self.choices[answer - 1]
 		except ValueError:
 			print('invalid selection')