소스 검색

Initial module docstring for python _pb2 (#7528)

Generated Python modules now have a module-level docstring.
Thiago C. D'Ávila 5 년 전
부모
커밋
28cc693f3d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/google/protobuf/compiler/python/python_generator.cc

+ 1 - 1
src/google/protobuf/compiler/python/python_generator.cc

@@ -183,7 +183,7 @@ void PrintTopBoilerplate(io::Printer* printer, const FileDescriptor* file,
       "# -*- coding: utf-8 -*-\n"
       "# -*- coding: utf-8 -*-\n"
       "# Generated by the protocol buffer compiler.  DO NOT EDIT!\n"
       "# Generated by the protocol buffer compiler.  DO NOT EDIT!\n"
       "# source: $filename$\n"
       "# source: $filename$\n"
-      "\n",
+      "\"\"\"Generated protocol buffer code.\"\"\"\n",
       "filename", file->name());
       "filename", file->name());
   if (HasTopLevelEnums(file)) {
   if (HasTopLevelEnums(file)) {
     printer->Print(
     printer->Print(