aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/python_generator.cc
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <atash@google.com>2016-12-28 14:28:44 -0800
committerGravatar Masood Malekghassemi <atash@google.com>2016-12-28 16:59:24 -0800
commit0d62d7e8d763022ff46567842a5961e99a0da1d1 (patch)
treeb76f43135440504c8686260ddcc7d711e9032a38 /src/compiler/python_generator.cc
parentddebfa65f2bdff332902adf73606bc050014b498 (diff)
Add `auto-gen`d comment to `_pb2_grpc.py` files
Diffstat (limited to 'src/compiler/python_generator.cc')
-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, "");
}