From bc947ada758e748468a9196cf871a4d5049ce419 Mon Sep 17 00:00:00 2001 From: Mehrdad Afshari Date: Wed, 18 Apr 2018 23:34:54 -0700 Subject: [PATCH] Eliminate unnecessary-lambda suppression --- .pylintrc-tests | 1 - src/python/grpcio_tests/tests/unit/_compression_test.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pylintrc-tests b/.pylintrc-tests index 2bcfb9e1ed9..e80d85eaf70 100644 --- a/.pylintrc-tests +++ b/.pylintrc-tests @@ -50,7 +50,6 @@ disable= too-many-return-statements, too-many-statements, function-redefined, - unnecessary-lambda, wildcard-import, line-too-long, wrong-import-position, diff --git a/src/python/grpcio_tests/tests/unit/_compression_test.py b/src/python/grpcio_tests/tests/unit/_compression_test.py index 7550cd39ba2..0b11f03adf5 100644 --- a/src/python/grpcio_tests/tests/unit/_compression_test.py +++ b/src/python/grpcio_tests/tests/unit/_compression_test.py @@ -52,9 +52,9 @@ class _MethodHandler(grpc.RpcMethodHandler): self.stream_unary = None self.stream_stream = None 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: - self.unary_unary = lambda x, y: handle_unary(x, y) + self.unary_unary = handle_unary class _GenericHandler(grpc.GenericRpcHandler):