Permalink
Browse files

Actually fix version check in _poll()

  • Loading branch information...
1 parent dd0556e commit a53d596b679742daeea931834d5d2b00af4a3e11 @bdkearns bdkearns committed Oct 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 zmq/_zmq.py
View
@@ -517,7 +517,7 @@ def _poll(sockets, timeout=-1):
timeout : int
The number of milliseconds to poll for. Negative means no timeout.
"""
- if major < c_int(3):
+ if major.value < 3:
# timeout is us in 2.x, ms in 3.x
# expected input is ms (matches 3.x)
timeout = 1000 * timeout

0 comments on commit a53d596

Please sign in to comment.