summaryrefslogtreecommitdiff
path: root/waitress/trigger.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-12-22 19:35:31 -0500
committerChris McDonough <chrism@plope.com>2011-12-22 19:35:31 -0500
commit97c9be921208847ab556f16d2425db90c0eea29b (patch)
treefa0dbf7363d8c81e41c87bc08a02444b6ec01327 /waitress/trigger.py
parent2906796ebb57f40d36641642c1cfadb9ab328681 (diff)
downloadwaitress-97c9be921208847ab556f16d2425db90c0eea29b.tar.gz
more py3 prep
Diffstat (limited to 'waitress/trigger.py')
-rw-r--r--waitress/trigger.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/waitress/trigger.py b/waitress/trigger.py
index 635cb0d..1bcd49a 100644
--- a/waitress/trigger.py
+++ b/waitress/trigger.py
@@ -15,9 +15,10 @@
import asyncore
import os
import socket
-import thread
import errno
+from waitress.compat import thread
+
# Wake up a call to select() running in the main thread.
#
# This is useful in a context where you are using Medusa's I/O
@@ -181,7 +182,7 @@ else:
try:
w.connect(connect_address)
break # success
- except socket.error, detail:
+ except socket.error as detail:
if detail[0] != errno.WSAEADDRINUSE:
# "Address already in use" is the only error
# I've seen on two WinXP Pro SP2 boxes, under