From b8eeefe663aabf9c7ea57354db7a20749d45cda0 Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Thu, 28 Mar 2024 18:30:26 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 620116943 --- src/google/protobuf/compiler/python/generator.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/google/protobuf/compiler/python/generator.cc b/src/google/protobuf/compiler/python/generator.cc index 8877995ed4..807a195931 100644 --- a/src/google/protobuf/compiler/python/generator.cc +++ b/src/google/protobuf/compiler/python/generator.cc @@ -192,10 +192,7 @@ GeneratorOptions Generator::ParseParameter(absl::string_view parameter, ParseGeneratorParameter(parameter, &option_pairs); for (const std::pair& option : option_pairs) { - if (!opensource_runtime_ && - option.first == "no_enforce_api_compatibility") { - // TODO: remove this legacy option, it has no effect. - } else if (!opensource_runtime_ && option.first == "bootstrap") { + if (!opensource_runtime_ && option.first == "bootstrap") { options.bootstrap = true; } else if (option.first == "pyi_out") { options.generate_pyi = true;