Skip to content

Commit 584ba46

Browse files
committed
fix lint errors
1 parent 7526b82 commit 584ba46

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

django_elasticache/cluster_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_cluster_info(host, port):
3232
client.write(b'version\n')
3333
res = client.read_until(b'\r\n').strip()
3434
version_list = res.split(b' ')
35-
if not len(version_list) in [2, 3] or version_list[0] != b'VERSION':
35+
if len(version_list) not in [2, 3] or version_list[0] != b'VERSION':
3636
raise WrongProtocolData('version', res)
3737
version = version_list[1]
3838
if StrictVersion(smart_text(version)) >= StrictVersion('1.4.14'):

django_elasticache/memcached.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def update_params(self, params):
4747
' in binary mode')
4848
else:
4949
params['BINARY'] = True # patch params, set binary mode
50-
if not 'OPTIONS' in params:
50+
if 'OPTIONS' not in params:
5151
# set special 'behaviors' pylibmc attributes
5252
params['OPTIONS'] = {
5353
'tcp_nodelay': True,

tests/test_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
b'CONFIG cluster 0 138\r\n1\nhost|ip|port host||port\n\r\nEND\r\n',
2424
]
2525

26+
2627
@patch('django_elasticache.cluster_utils.Telnet')
2728
def test_happy_path(Telnet):
2829
client = Telnet.return_value
@@ -74,4 +75,3 @@ def test_ubuntu_protocol(Telnet):
7475
call(b'version\n'),
7576
call(b'config get cluster\n'),
7677
])
77-

0 commit comments

Comments
 (0)