summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2016-06-10 21:24:13 +0200
committerCarlton Gibson <carlton.gibson@noumenal.es>2016-06-10 21:24:13 +0200
commit36283e4b647c37a9b3b585a40081aead27cfadc9 (patch)
treec0c3800cc508e9b8f2d068581576c000e08f292c /redis/connection.py
parent67f9adca849ff104ede2a1e79591fcfeac960262 (diff)
downloadredis-py-36283e4b647c37a9b3b585a40081aead27cfadc9.tar.gz
Retry `select` calls on `InterruptedError`
Ref #738
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-xredis/connection.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py
index a552820..f0e28e3 100755
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -1,7 +1,6 @@
from __future__ import with_statement
from distutils.version import StrictVersion
from itertools import chain
-from select import select
import os
import socket
import sys
@@ -17,7 +16,7 @@ except ImportError:
from redis._compat import (b, xrange, imap, byte_to_chr, unicode, bytes, long,
BytesIO, nativestr, basestring, iteritems,
LifoQueue, Empty, Full, urlparse, parse_qs,
- recv, recv_into, unquote)
+ recv, recv_into, select, unquote)
from redis.exceptions import (
RedisError,
ConnectionError,