summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Muhs <hendrik@cliqz.com>2014-12-04 10:25:39 +0100
committerHendrik Muhs <hendrik@cliqz.com>2014-12-04 10:25:39 +0100
commit2e05913f002d1b08a09d47f6506dacd53bafe052 (patch)
treebdd82632ac3f6241cbd1f89718a86e9abedfb3a4
parente31e98ba66cf3b16fc6a1658b23400102a782f11 (diff)
downloadredis-py-2e05913f002d1b08a09d47f6506dacd53bafe052.tar.gz
fix pep8
-rwxr-xr-xredis/client.py3
-rw-r--r--tests/test_scripting.py9
2 files changed, 7 insertions, 5 deletions
diff --git a/redis/client.py b/redis/client.py
index 602136f..70024af 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -6,7 +6,8 @@ import warnings
import threading
import time as mod_time
from redis._compat import (b, basestring, bytes, imap, iteritems, iterkeys,
- itervalues, izip, long, nativestr, unicode, safe_unicode)
+ itervalues, izip, long, nativestr, unicode,
+ safe_unicode)
from redis.connection import (ConnectionPool, UnixDomainSocketConnection,
SSLConnection, Token)
from redis.lock import Lock, LuaLock
diff --git a/tests/test_scripting.py b/tests/test_scripting.py
index 2e6f549..e9971d5 100644
--- a/tests/test_scripting.py
+++ b/tests/test_scripting.py
@@ -97,17 +97,18 @@ class TestScripting(object):
pipe = r.pipeline()
- # avoiding a dependency to msgpack, this is the output of msgpack.dumps({"name": "joe"})
+ # avoiding a dependency to msgpack, this is the output of
+ # msgpack.dumps({"name": "joe"})
msgpack_message_1 = b'\x81\xa4name\xa3Joe'
- msgpack_hello(args=[msgpack_message_1], client = pipe)
+ msgpack_hello(args=[msgpack_message_1], client=pipe)
assert r.script_exists(msgpack_hello.sha) == [True]
assert pipe.execute()[0] == b'hello Joe'
msgpack_hello_broken = r.register_script(msgpack_hello_script_broken)
- msgpack_hello_broken(args=[msgpack_message_1], client = pipe)
+ msgpack_hello_broken(args=[msgpack_message_1], client=pipe)
with pytest.raises(exceptions.ResponseError) as excinfo:
pipe.execute()
- assert excinfo.type == exceptions.ResponseError \ No newline at end of file
+ assert excinfo.type == exceptions.ResponseError