pg 1 year ago
parent
commit
d663b05d2c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      contrib/libs/grpc/src/compiler/python_generator.cc

+ 1 - 0
contrib/libs/grpc/src/compiler/python_generator.cc

@@ -895,6 +895,7 @@ bool PythonGrpcGenerator::Generate(const FileDescriptor* file,
       file->name().find_last_of(".proto") == file->name().size() - 1) {
     TString base =
         file->name().substr(0, file->name().size() - proto_suffix_length);
+    std::replace(base.MutRef().begin(), base.MutRef().end(), '-', '_');
     pb2_file_name = base + "_pb2.py";
     pb2_grpc_file_name = base + "_pb2_grpc.py";
   } else {