Skip to content

Commit

Permalink
Check for gevent monkey patching to determine if gevent Queue should …
Browse files Browse the repository at this point in the history
…be used.
  • Loading branch information
bbangert committed Apr 23, 2012
1 parent 4f1c0c4 commit e941058
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pycassa/pool.py
Expand Up @@ -4,10 +4,11 @@
import threading
import random
import socket
import sys

try:
if 'gevent.monkey' in sys.modules:
from gevent import queue as Queue
except ImportError:
else:
import Queue

from thrift import Thrift
Expand Down

0 comments on commit e941058

Please sign in to comment.