diff options
Diffstat (limited to 'python/google/protobuf/service_reflection.py')
-rwxr-xr-x | python/google/protobuf/service_reflection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/google/protobuf/service_reflection.py b/python/google/protobuf/service_reflection.py index 6e3bf14e..6439eaa4 100755 --- a/python/google/protobuf/service_reflection.py +++ b/python/google/protobuf/service_reflection.py @@ -160,8 +160,8 @@ class _ServiceBuilder(object): if method_descriptor.containing_service != self.descriptor: raise RuntimeError( 'CallMethod() given method descriptor for wrong service type.') - method = getattr(self.cls, method_descriptor.name) - method(srvc, rpc_controller, request, callback) + method = getattr(srvc, method_descriptor.name) + method(rpc_controller, request, callback) def _GetRequestClass(self, method_descriptor): """Returns the class of the request protocol message. |