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;