diff options
author | pg <pg@yandex-team.com> | 2023-12-05 23:29:11 +0300 |
---|---|---|
committer | pg <pg@yandex-team.com> | 2023-12-05 23:59:47 +0300 |
commit | d663b05d2ce78f55bfdd6823d01986944391f4a7 (patch) | |
tree | fef4d565e50ab80af7900b63f4759039f520ced6 | |
parent | be44b88ef33ce215e58dfe9880f4ba6790bd4b5c (diff) | |
download | ydb-d663b05d2ce78f55bfdd6823d01986944391f4a7.tar.gz |
-rw-r--r-- | contrib/libs/grpc/src/compiler/python_generator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/libs/grpc/src/compiler/python_generator.cc b/contrib/libs/grpc/src/compiler/python_generator.cc index b8ce31ca72..f9853b99ea 100644 --- a/contrib/libs/grpc/src/compiler/python_generator.cc +++ b/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 { |