Skip to content

Commit

Permalink
Eliminate unnecessary-lambda suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdada committed Apr 19, 2018
1 parent 4c87620 commit bc947ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .pylintrc-tests
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ disable=
too-many-return-statements,
too-many-statements,
function-redefined,
unnecessary-lambda,
wildcard-import,
line-too-long,
wrong-import-position,
Expand Down
4 changes: 2 additions & 2 deletions src/python/grpcio_tests/tests/unit/_compression_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def __init__(self, request_streaming, response_streaming):
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):
Expand Down

0 comments on commit bc947ad

Please sign in to comment.