aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Nathaniel Manista <nathaniel@google.com>2017-09-14 14:30:51 -0700
committerGravatar GitHub <noreply@github.com>2017-09-14 14:30:51 -0700
commit8956a2ed37b1e40c2ce046b0be2ff713d54d73f7 (patch)
tree59511b9d9084b6236966b2083b072335c1e3f191
parent7db81fb6d05b18f3150356e38b57fbe65c1a95a4 (diff)
parentd01fd422ece32c875abc9ad3cd022b3727cce2f4 (diff)
Merge pull request #12551 from nathanielmanistaatgoogle/grpc_1_0_flag
grpc_1_0 flag for gRPC Python Protoc Plug-In.
-rw-r--r--src/compiler/python_generator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/python_generator.cc b/src/compiler/python_generator.cc
index 31b177c28e..a60b528e3b 100644
--- a/src/compiler/python_generator.cc
+++ b/src/compiler/python_generator.cc
@@ -769,7 +769,7 @@ bool PythonGrpcGenerator::Generate(const FileDescriptor* file,
PrivateGenerator generator(config_, &pbfile);
if (parameter == "grpc_2_0") {
return GenerateGrpc(context, generator, pb2_grpc_file_name, true);
- } else if (parameter == "") {
+ } else if (parameter == "grpc_1_0" || parameter == "") {
return GenerateGrpc(context, generator, pb2_grpc_file_name, true) &&
GenerateGrpc(context, generator, pb2_file_name, false);
} else {