ソースを参照

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"
       "# 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(