summaryrefslogtreecommitdiff
path: root/urwid/main_loop.py
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2014-05-11 17:04:45 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2014-05-11 21:29:49 -0700
commit28079171a037e9bdd7a190fe8bd1446e02c8071f (patch)
tree389a976814bdd480f64a85a737ee7a7669e1f2c3 /urwid/main_loop.py
parent52d94d1c9634095e408fa499f57558d232412ee5 (diff)
downloadurwid-28079171a037e9bdd7a190fe8bd1446e02c8071f.tar.gz
Fix `except ... as`.
This would normally be done with 2to3. But I'm trying to run the test suite against 3, and urwid requires 2.6 anyway.
Diffstat (limited to 'urwid/main_loop.py')
-rwxr-xr-xurwid/main_loop.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urwid/main_loop.py b/urwid/main_loop.py
index 5d3be1f..2c314d8 100755
--- a/urwid/main_loop.py
+++ b/urwid/main_loop.py
@@ -640,7 +640,7 @@ class SelectEventLoop(object):
while True:
try:
self._loop()
- except select.error, e:
+ except select.error as e:
if e.args[0] != 4:
# not just something we need to retry
raise