diff options
author | Carlton Gibson <carlton.gibson@noumenal.es> | 2016-06-10 21:24:13 +0200 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2016-06-10 21:24:13 +0200 |
commit | 36283e4b647c37a9b3b585a40081aead27cfadc9 (patch) | |
tree | c0c3800cc508e9b8f2d068581576c000e08f292c /redis/connection.py | |
parent | 67f9adca849ff104ede2a1e79591fcfeac960262 (diff) | |
download | redis-py-36283e4b647c37a9b3b585a40081aead27cfadc9.tar.gz |
Retry `select` calls on `InterruptedError`
Ref #738
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-x | redis/connection.py | 3 |
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, |