summaryrefslogtreecommitdiff
path: root/wsgitools/scgi/forkpool.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2012-06-28 16:12:52 +0200
committerHelmut Grohne <helmut@subdivi.de>2012-06-28 16:12:52 +0200
commitee5abb0e0b24b4e1ac31412a279a40e166482fce (patch)
tree011e53de9cccec90864052c9bb6506f6b6ac31c9 /wsgitools/scgi/forkpool.py
parent17dbb95ded62f9789a60a913c008ce2217f6d1a5 (diff)
downloadwsgitools-ee5abb0e0b24b4e1ac31412a279a40e166482fce.tar.gz
drop support for python2.5, use except ... as ...
Diffstat (limited to 'wsgitools/scgi/forkpool.py')
-rw-r--r--wsgitools/scgi/forkpool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py
index cdd50f0..1bf0c6f 100644
--- a/wsgitools/scgi/forkpool.py
+++ b/wsgitools/scgi/forkpool.py
@@ -41,7 +41,7 @@ class SocketFileWrapper:
return ""
try:
data = self.sock.recv(toread)
- except socket.error, why:
+ except socket.error as why:
if why[0] in (errno.ECONNRESET, errno.ENOTCONN, errno.ESHUTDOWN):
data = ""
else:
@@ -250,7 +250,7 @@ class SCGIServer:
self.spawnworker()
try:
rs, _, _ = select.select(self.workers.keys(), [], [])
- except select.error, e:
+ except select.error as e:
if e[0] != errno.EINTR:
raise
rs = []