diff options
author | Mehrdad Afshari <mmx@google.com> | 2018-04-18 23:34:54 -0700 |
---|---|---|
committer | Mehrdad Afshari <mehrdada@users.noreply.github.com> | 2018-04-19 10:39:38 -0700 |
commit | bc947ada758e748468a9196cf871a4d5049ce419 (patch) | |
tree | ebb86ae05057517a69f82fe918209ca30e4b9e9e | |
parent | 4c87620da222bb9d145ada811e64dc5978be9982 (diff) |
Eliminate unnecessary-lambda suppression
-rw-r--r-- | .pylintrc-tests | 1 | ||||
-rw-r--r-- | 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 2bcfb9e1ed..e80d85eaf7 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 7550cd39ba..0b11f03adf 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): |