summaryrefslogtreecommitdiff
path: root/python/qpid/selector.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-10-06 16:19:30 +0000
committerRafael H. Schloming <rhs@apache.org>2009-10-06 16:19:30 +0000
commit5077b5b804a418a5f553b8067c1fb6d65082f48a (patch)
tree882f7f54daf7ac15b2dd293705d555ee62656bdc /python/qpid/selector.py
parent33835078ba46fc5937dcdf1a713dd187f8628bf5 (diff)
downloadqpid-python-5077b5b804a418a5f553b8067c1fb6d65082f48a.tar.gz
compatibility changes for python 2.3
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@822332 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/selector.py')
-rw-r--r--python/qpid/selector.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/qpid/selector.py b/python/qpid/selector.py
index 05b8d3a203..710f8f0689 100644
--- a/python/qpid/selector.py
+++ b/python/qpid/selector.py
@@ -17,7 +17,7 @@
# under the License.
#
import atexit, os, time
-from select import select
+from compat import select, set
from threading import Thread, Lock
class Acceptor:
@@ -84,10 +84,7 @@ class Selector:
self.thread = None
def wakeup(self):
- while True:
- select([], [self.wakeup_fd], [])
- if os.write(self.wakeup_fd, "\0") > 0:
- break
+ os.write(self.wakeup_fd, "\0")
def register(self, selectable):
self.selectables.add(selectable)