diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-11-02 06:30:07 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-03 03:21:49 -0700 |
commit | 7a0e4c7f99463c79b456a48837b5687072e1485d (patch) | |
tree | f07ff3f699f66f93d4afc62a35dffc75963af01a /redis/_compat.py | |
parent | 3f1e817f24b4b51c1d1f17a7c1ef5a3bc5746751 (diff) | |
download | redis-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.py | 5 |
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 |