diff --git a/debian/changelog b/debian/changelog index fad59902..993a1e80 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ byobu (5.103) unreleased; urgency=medium usr/share/man/man1/Makefile.am, usr/share/man/man1/purge-old- kernels.1: - move purge-old-kernels over from bikeshed into byobu + * usr/lib/byobu/include/select-session.py: LP: #1550687 + - make sure input/eval is compatible with both python2 and 3 -- Dustin Kirkland Thu, 04 Feb 2016 16:30:00 -0600 diff --git a/usr/lib/byobu/include/select-session.py b/usr/lib/byobu/include/select-session.py index 553289a8..3e21e164 100755 --- a/usr/lib/byobu/include/select-session.py +++ b/usr/lib/byobu/include/select-session.py @@ -125,7 +125,10 @@ if len(sessions) > 1: sys.stdout.write(" %d. %s\n" % (i, s)) i += 1 try: - choice = int(eval(input("\nChoose 1-%d [1]: " % (i - 1)))) + try: + choice = int(input("\nChoose 1-%d [1]: " % (i - 1))) + except: + choice = int(eval(input("\nChoose 1-%d [1]: " % (i - 1)))) if choice >= 1 and choice < i: break else: