From 28cc693f3d05bab5f779b6fc8d514868130e81c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thiago=20C=2E=20D=27=C3=81vila?= Date: Tue, 2 Jun 2020 18:45:30 -0300 Subject: [PATCH] Initial module docstring for python _pb2 (#7528) Generated Python modules now have a module-level docstring. --- src/google/protobuf/compiler/python/python_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/python/python_generator.cc b/src/google/protobuf/compiler/python/python_generator.cc index a95b37f1cea03..6f70e68551efe 100644 --- a/src/google/protobuf/compiler/python/python_generator.cc +++ b/src/google/protobuf/compiler/python/python_generator.cc @@ -183,7 +183,7 @@ void PrintTopBoilerplate(io::Printer* printer, const FileDescriptor* file, "# -*- coding: utf-8 -*-\n" "# Generated by the protocol buffer compiler. DO NOT EDIT!\n" "# source: $filename$\n" - "\n", + "\"\"\"Generated protocol buffer code.\"\"\"\n", "filename", file->name()); if (HasTopLevelEnums(file)) { printer->Print(