Eliminate unnecessary-lambda suppression

pull/15113/head
Mehrdad Afshari 7 years ago committed by Mehrdad Afshari
parent 4c87620da2
commit bc947ada75
  1. 1
      .pylintrc-tests
  2. 4
      src/python/grpcio_tests/tests/unit/_compression_test.py

@ -50,7 +50,6 @@ disable=
too-many-return-statements, too-many-return-statements,
too-many-statements, too-many-statements,
function-redefined, function-redefined,
unnecessary-lambda,
wildcard-import, wildcard-import,
line-too-long, line-too-long,
wrong-import-position, wrong-import-position,

@ -52,9 +52,9 @@ class _MethodHandler(grpc.RpcMethodHandler):
self.stream_unary = None self.stream_unary = None
self.stream_stream = None self.stream_stream = None
if self.request_streaming and self.response_streaming: if self.request_streaming and self.response_streaming:
self.stream_stream = lambda x, y: handle_stream(x, y) self.stream_stream = handle_stream
elif not self.request_streaming and not self.response_streaming: elif not self.request_streaming and not self.response_streaming:
self.unary_unary = lambda x, y: handle_unary(x, y) self.unary_unary = handle_unary
class _GenericHandler(grpc.GenericRpcHandler): class _GenericHandler(grpc.GenericRpcHandler):

Loading…
Cancel
Save