aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python/helloworld/greeter_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/helloworld/greeter_client.py')
-rw-r--r--examples/python/helloworld/greeter_client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/python/helloworld/greeter_client.py b/examples/python/helloworld/greeter_client.py
index 44d42c102b..281a68f3c3 100644
--- a/examples/python/helloworld/greeter_client.py
+++ b/examples/python/helloworld/greeter_client.py
@@ -34,11 +34,12 @@ from __future__ import print_function
import grpc
import helloworld_pb2
+import helloworld_pb2_grpc
def run():
channel = grpc.insecure_channel('localhost:50051')
- stub = helloworld_pb2.GreeterStub(channel)
+ stub = helloworld_pb2_grpc.GreeterStub(channel)
response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
print("Greeter client received: " + response.message)