mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
* usr/lib/byobu/include/select-session.py: LP: #1550687
- make sure input/eval is compatible with both python2 and 3
This commit is contained in:
parent
cbd87dfbe1
commit
f041622dfe
2 changed files with 6 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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 <kirkland@ubuntu.com> Thu, 04 Feb 2016 16:30:00 -0600
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue