summaryrefslogtreecommitdiff
path: root/redis/_compat.py
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm+git@nextday.fi>2012-08-07 01:25:39 +0300
committerAlex Grönholm <alex.gronholm+git@nextday.fi>2012-08-07 01:25:39 +0300
commite16cd9cbcb1eac1c078b79a1e81fb70aec96dc6b (patch)
treeb9b9e68dc6445c3fcb4f51306a98f383ad7a3634 /redis/_compat.py
parent4f2911456df2e84aee9fb71984a990b9f8f472f5 (diff)
downloadredis-py-e16cd9cbcb1eac1c078b79a1e81fb70aec96dc6b.tar.gz
Fixed PEP 8 violations introduced in previous commits
Diffstat (limited to 'redis/_compat.py')
-rw-r--r--redis/_compat.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/redis/_compat.py b/redis/_compat.py
index ebc5999..d8af484 100644
--- a/redis/_compat.py
+++ b/redis/_compat.py
@@ -14,7 +14,8 @@ if sys.version_info[0] < 3:
iteritems = lambda x: x.iteritems()
dictkeys = lambda x: x.keys()
dictvalues = lambda x: x.values()
- nativestr = lambda x: x if isinstance(x, str) else x.encode('utf-8', 'replace')
+ nativestr = lambda x: \
+ x if isinstance(x, str) else x.encode('utf-8', 'replace')
u = lambda x: x.decode()
b = lambda x: x
next = lambda x: x.next()
@@ -34,7 +35,8 @@ else:
dictkeys = lambda x: list(x.keys())
dictvalues = lambda x: list(x.values())
byte_to_chr = lambda x: chr(x)
- nativestr = lambda x: x if isinstance(x, str) else x.decode('utf-8', 'replace')
+ 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')
next = next