Skip to content

Commit

Permalink
Merge pull request grpc#10255 from nathanielmanistaatgoogle/_pb2_grpc…
Browse files Browse the repository at this point in the history
…-unnecessary-imports

Drop unnecessary framework imports from generated _pb2_grpc.py files.
  • Loading branch information
nathanielmanistaatgoogle authored Mar 23, 2017
2 parents 5583756 + 2f390db commit 209c41a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/compiler/python_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -647,15 +647,15 @@ bool PrivateGenerator::PrintBetaPreamble() {
"Package", config.beta_package_root);
out->Print("from $Package$ import interfaces as beta_interfaces\n", "Package",
config.beta_package_root);
out->Print("from grpc.framework.common import cardinality\n");
out->Print(
"from grpc.framework.interfaces.face import utilities as "
"face_utilities\n");
return true;
}

bool PrivateGenerator::PrintPreamble() {
out->Print("import $Package$\n", "Package", config.grpc_package_root);
out->Print("from grpc.framework.common import cardinality\n");
out->Print(
"from grpc.framework.interfaces.face import utilities as "
"face_utilities\n");
if (generate_in_pb2_grpc) {
out->Print("\n");
StringPairSet imports_set;
Expand Down

0 comments on commit 209c41a

Please sign in to comment.