diff options
| author | Chris McDonough <chrism@plope.com> | 2011-12-22 19:35:31 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-12-22 19:35:31 -0500 |
| commit | 97c9be921208847ab556f16d2425db90c0eea29b (patch) | |
| tree | fa0dbf7363d8c81e41c87bc08a02444b6ec01327 /waitress/trigger.py | |
| parent | 2906796ebb57f40d36641642c1cfadb9ab328681 (diff) | |
| download | waitress-97c9be921208847ab556f16d2425db90c0eea29b.tar.gz | |
more py3 prep
Diffstat (limited to 'waitress/trigger.py')
| -rw-r--r-- | waitress/trigger.py | 5 |
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 |
