summaryrefslogtreecommitdiff
path: root/redis/_compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/_compat.py')
-rw-r--r--redis/_compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/_compat.py b/redis/_compat.py
index 38a7316..add9c9b 100644
--- a/redis/_compat.py
+++ b/redis/_compat.py
@@ -40,7 +40,7 @@ else:
nativestr = lambda x: \
x if isinstance(x, str) else x.decode('utf-8', 'replace')
u = lambda x: x
- b = lambda x: x.encode('iso-8859-1') if not isinstance(x, bytes) else x
+ b = lambda x: x.encode('latin-1') if not isinstance(x, bytes) else x
next = next
unichr = chr
imap = map