diff options
author | Mehrdad Afshari <mmx@google.com> | 2018-06-14 13:57:50 -0700 |
---|---|---|
committer | Mehrdad Afshari <mmx@google.com> | 2018-06-14 13:57:50 -0700 |
commit | b291f186be78dc8bd8c31b301fb8795a106b3ff4 (patch) | |
tree | f38d72cc7758ceed5355f1e038f03415f6f949ef /src/python | |
parent | 56142a5dbf5fea060781c7ad36b0410cc0d6ffa7 (diff) |
Refactor: reorder
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/grpcio/grpc/_interceptor.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/python/grpcio/grpc/_interceptor.py b/src/python/grpcio/grpc/_interceptor.py index 30c98add10..1d2d374ad1 100644 --- a/src/python/grpcio/grpc/_interceptor.py +++ b/src/python/grpcio/grpc/_interceptor.py @@ -201,13 +201,6 @@ class _UnaryUnaryMultiCallable(grpc.UnaryUnaryMultiCallable): credentials=credentials) return response - def with_call(self, request, timeout=None, metadata=None, credentials=None): - return self._with_call( - request, - timeout=timeout, - metadata=metadata, - credentials=credentials) - def _with_call(self, request, timeout=None, metadata=None, credentials=None): client_call_details = _ClientCallDetails(self._method, timeout, @@ -232,6 +225,13 @@ class _UnaryUnaryMultiCallable(grpc.UnaryUnaryMultiCallable): continuation, client_call_details, request) return call.result(), call + def with_call(self, request, timeout=None, metadata=None, credentials=None): + return self._with_call( + request, + timeout=timeout, + metadata=metadata, + credentials=credentials) + def future(self, request, timeout=None, metadata=None, credentials=None): client_call_details = _ClientCallDetails(self._method, timeout, metadata, credentials) @@ -298,17 +298,6 @@ class _StreamUnaryMultiCallable(grpc.StreamUnaryMultiCallable): credentials=credentials) return response - def with_call(self, - request_iterator, - timeout=None, - metadata=None, - credentials=None): - return self._with_call( - request_iterator, - timeout=timeout, - metadata=metadata, - credentials=credentials) - def _with_call(self, request_iterator, timeout=None, @@ -336,6 +325,17 @@ class _StreamUnaryMultiCallable(grpc.StreamUnaryMultiCallable): continuation, client_call_details, request_iterator) return call.result(), call + def with_call(self, + request_iterator, + timeout=None, + metadata=None, + credentials=None): + return self._with_call( + request_iterator, + timeout=timeout, + metadata=metadata, + credentials=credentials) + def future(self, request_iterator, timeout=None, |