summaryrefslogtreecommitdiff
path: root/redis/_compat.py
diff options
context:
space:
mode:
authorandy <andy@whiskeymedia.com>2013-06-04 17:23:22 -0400
committerandy <andy@whiskeymedia.com>2013-06-04 17:23:22 -0400
commit4b0e43eedc457b7f3c41885427c3fc5bd4ade7d1 (patch)
tree7c8f2072e2d06cf5539fa643906d420ebecc250f /redis/_compat.py
parent60704548fa7f941b27db307c0a191aa4b6e993a5 (diff)
downloadredis-py-4b0e43eedc457b7f3c41885427c3fc5bd4ade7d1.tar.gz
connection pool tests
Diffstat (limited to 'redis/_compat.py')
-rw-r--r--redis/_compat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/redis/_compat.py b/redis/_compat.py
index 564ade7..38a7316 100644
--- a/redis/_compat.py
+++ b/redis/_compat.py
@@ -6,6 +6,7 @@ if sys.version_info[0] < 3:
from urlparse import urlparse
from itertools import imap, izip
from string import letters as ascii_letters
+ from Queue import Queue
try:
from cStringIO import StringIO as BytesIO
except ImportError:
@@ -30,6 +31,7 @@ else:
from urllib.parse import urlparse
from io import BytesIO
from string import ascii_letters
+ from queue import Queue
iteritems = lambda x: iter(x.items())
iterkeys = lambda x: iter(x.keys())