Skip to content

Commit fd97df8

Browse files
Fix LGTM warnings (#17)
Co-authored-by: Guy Korland <[email protected]>
1 parent 59ab559 commit fd97df8

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

example.py

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
from gearsclient import GearsRemoteBuilder as GRB
2-
from gearsclient import log, hashtag, execute, atomic
2+
from gearsclient import execute, atomic
33
import redis
44

55
conn = redis.Redis(host='localhost', port=6379)
66

7-
# count for each genre how many times it appears
8-
9-
# class test:
10-
# def __init__(self):
11-
# self.count = 1
12-
13-
# def func1(x):
14-
# return test()
15-
16-
# def func2(x):
17-
# x.count += 1
18-
# return x
19-
207
def func(x):
218
with atomic():
229
execute('hset', 'h', 'foo', 'bar')
@@ -28,8 +15,3 @@ def func(x):
2815
run()
2916

3017
print(res)
31-
# if len(res[1]) > 0:
32-
# print(res[1])
33-
34-
# for r in res[0]:
35-
# print('%s' % str(r.count))

gearsclient/redisgears_builder.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import redis
22
import cloudpickle
3-
import pickle
43

54
class GearsRemoteLocalGroupByStep():
65
def __init__(self, extractor, reducer):
@@ -332,7 +331,6 @@ class atomic:
332331
def __init__(self):
333332
from redisgears import atomicCtx as redisAtomic
334333
self.atomic = redisAtomic()
335-
pass
336334

337335
def __enter__(self):
338336
self.atomic.__enter__()

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
redis
2-
cloudpickle
2+
cloudpickle

0 commit comments

Comments
 (0)