summaryrefslogtreecommitdiff
path: root/redis/_compat.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-28 09:50:57 -0500
committerJon Dufresne <jon.dufresne@gmail.com>2018-12-28 09:50:57 -0500
commita87bd688d163308cc1af381f59fdbb4f4a818ce5 (patch)
tree71e9afd2e21f261804e084aab1284a22b36e3606 /redis/_compat.py
parent4ae98e7de18f16fb669b74ee09245ff4de3da0b4 (diff)
downloadredis-py-a87bd688d163308cc1af381f59fdbb4f4a818ce5.tar.gz
Remove unnecessary compat shim for 'bytes'
Both Python 2.7 & Python 3 have the types bytes. On Python 2.7, it is an alias for the type str, same as what was previously defined in _compat.py.
Diffstat (limited to 'redis/_compat.py')
-rw-r--r--redis/_compat.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/redis/_compat.py b/redis/_compat.py
index 80973b3..c9213a6 100644
--- a/redis/_compat.py
+++ b/redis/_compat.py
@@ -112,7 +112,6 @@ if sys.version_info[0] < 3:
xrange = xrange
basestring = basestring
unicode = unicode
- bytes = str
long = long
else:
from urllib.parse import parse_qs, unquote, urlparse
@@ -142,7 +141,6 @@ else:
basestring = str
unicode = str
safe_unicode = str
- bytes = bytes
long = int
try: # Python 3