Skip to content

Commit

Permalink
Linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Razikus committed Aug 29, 2022
1 parent 94e4366 commit bdd66f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions immudb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def healthCheck(self):

# Not implemented: connect
def _convertToBytes(self, what):
if(type(what) != bytes):
if (type(what) != bytes):
return bytes(what, encoding='utf-8')
return what

Expand Down Expand Up @@ -139,7 +139,7 @@ def logout(self):
def _resetStub(self):
self.headersInterceptors = []
self.clientInterceptors = []
if(self.timeout != None):
if (self.timeout != None):
self.clientInterceptors.append(
grpcutils.timeout_adder_interceptor(self.timeout))
self.__stub = schema_pb2_grpc.ImmuServiceStub(self.channel)
Expand Down Expand Up @@ -436,6 +436,7 @@ def safeSet(self, key: bytes, value: bytes): # deprecated

# immudb-py only


def getAllValues(self, keys: list): # immudb-py only
resp = batchGet.call(self.__stub, self.__rs, keys)
return resp
Expand Down
2 changes: 1 addition & 1 deletion immudb/grpcutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def timeout_adder_interceptor(stubTimeout=None):
def intercept_call(client_call_details, request_iterator, request_streaming,
response_streaming):
timeoutToSet = client_call_details.timeout
if(timeoutToSet == None):
if (timeoutToSet == None):
timeoutToSet = stubTimeout
client_call_details = _ClientCallDetails(
client_call_details.method, timeoutToSet, client_call_details.metadata,
Expand Down
2 changes: 1 addition & 1 deletion immudb/handler/execAll.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def call(service: schema_pb2_grpc.ImmuServiceStub, rs: RootService, ops: list, n
)
)
else:
raise("unknown op for execAll")
raise ("unknown op for execAll")

request = schema_pb2.ExecAllRequest(Operations=request_ops, noWait=noWait)
msg = service.ExecAll(request)
Expand Down

0 comments on commit bdd66f6

Please sign in to comment.