aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python/helloworld/greeter_client.py
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-03-28 16:09:04 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-03-28 16:09:04 -0700
commit8a03448a8c030d8a083e704061a5e89d9b9df01c (patch)
tree1f21c7cf40d906783755864f87a49a5ae95c310e /examples/python/helloworld/greeter_client.py
parent59743d6971a98562a1c59780a9f1e4bcc24dd899 (diff)
parente5cc05b5c6cee7026a0d28d39925621451506820 (diff)
Merge github.com:grpc/grpc into cleaner-posix2
Diffstat (limited to 'examples/python/helloworld/greeter_client.py')
-rw-r--r--examples/python/helloworld/greeter_client.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/python/helloworld/greeter_client.py b/examples/python/helloworld/greeter_client.py
index 561b25bcb2..9c18b41d25 100644
--- a/examples/python/helloworld/greeter_client.py
+++ b/examples/python/helloworld/greeter_client.py
@@ -1,4 +1,4 @@
-# Copyright 2015, Google Inc.
+# Copyright 2015-2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -29,6 +29,8 @@
"""The Python implementation of the GRPC helloworld.Greeter client."""
+from __future__ import print_function
+
from grpc.beta import implementations
import helloworld_pb2
@@ -40,7 +42,7 @@ def run():
channel = implementations.insecure_channel('localhost', 50051)
stub = helloworld_pb2.beta_create_Greeter_stub(channel)
response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'), _TIMEOUT_SECONDS)
- print "Greeter client received: " + response.message
+ print("Greeter client received: " + response.message)
if __name__ == '__main__':