Skip to content

Commit

Permalink
Minor internal changes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 696223294
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Jan 2, 2025
1 parent a2a2840 commit 269900f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/google/protobuf/compiler/python/generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,6 @@ void Generator::PrintTopBoilerplate() const {
"protobuf_python_version", PROTOBUF_PYTHON_VERSION_STRING);
}
printer_->Print("\"\"\"Generated protocol buffer code.\"\"\"\n");
if (!opensource_runtime_) {
// This import is needed so that compatibility proto1 compiler output
// inserted at protoc_insertion_point can refer to other protos like
// google3.a.b.c. Code generated by proto2 compiler doesn't do it, and
// instead uses aliases assigned when importing modules.
printer_->Print("import google3\n");
}
bool runtime_version_disabled = false;
printer_->Print(
"from google.protobuf import descriptor as _descriptor\n"
Expand Down

0 comments on commit 269900f

Please sign in to comment.