summaryrefslogtreecommitdiff
path: root/redis/_compat.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-11-02 06:30:07 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-11-03 03:21:49 -0700
commit7a0e4c7f99463c79b456a48837b5687072e1485d (patch)
treef07ff3f699f66f93d4afc62a35dffc75963af01a /redis/_compat.py
parent3f1e817f24b4b51c1d1f17a7c1ef5a3bc5746751 (diff)
downloadredis-py-7a0e4c7f99463c79b456a48837b5687072e1485d.tar.gz
Use io package for BytesIO
Available on all supported Python versions.
Diffstat (limited to 'redis/_compat.py')
-rw-r--r--redis/_compat.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/redis/_compat.py b/redis/_compat.py
index ad12543..310611b 100644
--- a/redis/_compat.py
+++ b/redis/_compat.py
@@ -86,10 +86,6 @@ if sys.version_info[0] < 3:
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:
- from StringIO import StringIO as BytesIO
# special unicode handling for python2 to avoid UnicodeDecodeError
def safe_unicode(obj, *args):
@@ -133,7 +129,6 @@ if sys.version_info[0] < 3:
long = long
else:
from urllib.parse import parse_qs, unquote, urlparse
- from io import BytesIO
from string import ascii_letters
from queue import Queue