Skip to content

Commit

Permalink
Actually fix version check in _poll()
Browse files Browse the repository at this point in the history
  • Loading branch information
bdkearns committed Oct 7, 2012
1 parent dd0556e commit a53d596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmq/_zmq.py
Expand Up @@ -517,7 +517,7 @@ def _poll(sockets, timeout=-1):
timeout : int timeout : int
The number of milliseconds to poll for. Negative means no timeout. 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 # timeout is us in 2.x, ms in 3.x
# expected input is ms (matches 3.x) # expected input is ms (matches 3.x)
timeout = 1000 * timeout timeout = 1000 * timeout
Expand Down

0 comments on commit a53d596

Please sign in to comment.