aboutsummaryrefslogtreecommitdiff
path: root/python/google/protobuf/service_reflection.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/google/protobuf/service_reflection.py')
-rwxr-xr-xpython/google/protobuf/service_reflection.py4
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.