Skip to content

Commit 76c0ae7

Browse files
committed
Python 3 compatibility
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 6dfb7fc commit 76c0ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/urwid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ def push(self, s, insert_into_history=True):
934934
# Pretty blindly adapted from bpython.cli
935935
try:
936936
return repl.Repl.push(self, s, insert_into_history)
937-
except SystemExit, e:
937+
except SystemExit as e:
938938
self.exit_value = e.args
939939
raise urwid.ExitMainLoop()
940940
except KeyboardInterrupt:

0 commit comments

Comments
 (0)