summaryrefslogtreecommitdiff
path: root/urwid/web_display.py
diff options
context:
space:
mode:
authorMarien Zwart <marien.zwart@gmail.com>2010-02-11 16:01:30 +0100
committerMarien Zwart <marien.zwart@gmail.com>2010-02-11 16:01:30 +0100
commitd2a73506a58d28db9b654d85d2024407fdf211e1 (patch)
treedfd5d8575ded47bfe4f15fdcd2f61bd0e7bfa9bc /urwid/web_display.py
parent5274f22a02e93be5e8b5ab5f872a4de06efb7606 (diff)
downloadurwid-d2a73506a58d28db9b654d85d2024407fdf211e1.tar.gz
Remove unused local variables (do not merge blindly! perhaps some of them *should* be used?)
Diffstat (limited to 'urwid/web_display.py')
-rwxr-xr-xurwid/web_display.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/urwid/web_display.py b/urwid/web_display.py
index 2c9ce4f..5dc18c7 100755
--- a/urwid/web_display.py
+++ b/urwid/web_display.py
@@ -749,7 +749,7 @@ class Screen:
signal.alarm( 0 )
try:
s, addr = self.server_socket.accept()
- except socket.timeout, e:
+ except socket.timeout:
sys.exit(0)
send = s.sendall
else:
@@ -856,7 +856,7 @@ class Screen:
try:
s, addr = self.server_socket.accept()
s.close()
- except socket.timeout, e:
+ except socket.timeout:
sys.exit(0)
else:
# send empty update
@@ -998,7 +998,7 @@ def handle_short_request():
sys.stdout.write(data)
data = s.recv(BUF_SZ)
return True
- except socket.error,e:
+ except socket.error:
sys.stdout.write("Status: 404 Not Found\r\n\r\n")
return True
@@ -1008,7 +1008,7 @@ def handle_short_request():
try:
fd = os.open((os.path.join(_prefs.pipe_dir,
"urwid"+urwid_id+".in")), os.O_WRONLY)
- except OSError,e:
+ except OSError:
sys.stdout.write("Status: 404 Not Found\r\n\r\n")
return True