Fix arguments-differ pylint warning

pull/15682/head
Mehrdad Afshari 7 years ago
parent de1718c1c0
commit 109b5b1dcc
  1. 4
      src/python/grpcio_testing/grpc_testing/_server/_handler.py

@ -105,10 +105,10 @@ class _Handler(Handler):
self._expiration_future.cancel() self._expiration_future.cancel()
self._condition.notify_all() self._condition.notify_all()
def add_termination_callback(self, termination_callback): def add_termination_callback(self, callback):
with self._condition: with self._condition:
if self._code is None: if self._code is None:
self._termination_callbacks.append(termination_callback) self._termination_callbacks.append(callback)
return True return True
else: else:
return False return False

Loading…
Cancel
Save