Skip to content

Commit 1cd6dd1

Browse files
authored
silence LGTM warnings (#14)
1 parent 1144f8c commit 1cd6dd1

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

redisbloom/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import six
2-
import redis
3-
from redis import Redis, RedisError
4-
from redis.client import Pipeline
5-
from redis.client import bool_ok
6-
from redis._compat import (long, nativestr)
2+
from redis.client import Redis, Pipeline
3+
from redis._compat import nativestr
74
from redis.exceptions import DataError
85

6+
def bool_ok(response):
7+
return nativestr(response) == 'OK'
8+
99
class CMSInfo(object):
1010
width = None
1111
depth = None

rltest_commands.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# RLTest -t rltest_commands.py --module <directory>/rebloom.so -s
33

44
from RLTest import Env
5-
import time
65
from redisbloom.client import Client as RedisBloom
76
from redis import ResponseError
87

@@ -69,7 +68,7 @@ def testBFDumpLoad(self):
6968
# certain to not break anything
7069
def do_verify():
7170
res = 0
72-
for x in xrange(1000):
71+
for x in range(1000):
7372
rb.bfAdd('myBloom', x)
7473
rv = rb.bfExists('myBloom', x)
7574
self.env.assertTrue(rv)

0 commit comments

Comments
 (0)