aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <atash@google.com>2016-12-29 10:31:44 -0800
committerGravatar GitHub <noreply@github.com>2016-12-29 10:31:44 -0800
commitd86080d402d1e254bae8c001013527651db4f33a (patch)
treed3f44bd4c82c4b146250dfe8284a757539f54cf7 /src
parent1ef7b1d6b47dd76f2eb1b726820e5af5fefbbb73 (diff)
parent0d62d7e8d763022ff46567842a5961e99a0da1d1 (diff)
Merge pull request #9206 from soltanmm-google/is-the-world-is-moving-too-fast-or-am-I-moving-too-slow
Add `auto-gen`d comment to `_pb2_grpc.py` files
Diffstat (limited to 'src')
-rw-r--r--src/compiler/python_generator.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/python_generator.cc b/src/compiler/python_generator.cc
index 0fac1b88cd..4841da8da8 100644
--- a/src/compiler/python_generator.cc
+++ b/src/compiler/python_generator.cc
@@ -724,6 +724,9 @@ pair<bool, grpc::string> PrivateGenerator::GetGrpcServices() {
out = &out_printer;
if (generate_in_pb2_grpc) {
+ out->Print(
+ "# Generated by the gRPC Python protocol compiler plugin. "
+ "DO NOT EDIT!\n");
if (!PrintPreamble()) {
return make_pair(false, "");
}