Skip to content

Commit

Permalink
Fix sys.exc_info typo in ioloop, and typecheck for int/long in poll.
Browse files Browse the repository at this point in the history
Fixes gh-46
  • Loading branch information
minrk committed Nov 15, 2010
1 parent 3bb1b19 commit 359c6e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zmq/core/poll.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _poll(sockets, long timeout=-1):
pollitems[i].socket = current_socket.handle
pollitems[i].events = events
pollitems[i].revents = 0
elif isinstance(s, int):
elif isinstance(s, (int,long)):
pollitems[i].socket = NULL
pollitems[i].fd = s
pollitems[i].events = events
Expand Down
2 changes: 1 addition & 1 deletion zmq/eventloop/ioloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def start(self):
else:
raise
except Exception:
e = sys.exc_info[1]
e = sys.exc_info()[1]
# Depending on python version and IOLoop implementation,
# different exception types may be thrown and there are
# two ways EINTR might be signaled:
Expand Down

0 comments on commit 359c6e9

Please sign in to comment.