aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2023-12-05 23:29:11 +0300
committerpg <pg@yandex-team.com>2023-12-05 23:59:47 +0300
commitd663b05d2ce78f55bfdd6823d01986944391f4a7 (patch)
treefef4d565e50ab80af7900b63f4759039f520ced6
parentbe44b88ef33ce215e58dfe9880f4ba6790bd4b5c (diff)
downloadydb-d663b05d2ce78f55bfdd6823d01986944391f4a7.tar.gz
-rw-r--r--contrib/libs/grpc/src/compiler/python_generator.cc1
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 {