Skip to content

Commit

Permalink
Merge pull request grpc#809 from nicolasnoble/python-emplace
Browse files Browse the repository at this point in the history
Removing emplace from python plugin.
  • Loading branch information
donnadionne committed Feb 25, 2015
2 parents 3c17f04 + e6d72c2 commit 4e535a0
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 @@ -245,8 +245,8 @@ bool PrintServerFactory(const ServiceDescriptor* service, Printer* out) {
if (!GetModuleAndMessagePath(input_type, &module_and_message)) {
return false;
}
method_to_module_and_message.emplace(
meth->name(), module_and_message);
method_to_module_and_message.insert(
make_pair(meth->name(), module_and_message));
}
out->Print("}\n");
// Ensure that we've imported all of the relevant messages.
Expand Down Expand Up @@ -306,8 +306,8 @@ bool PrintStubFactory(const ServiceDescriptor* service, Printer* out) {
if (!GetModuleAndMessagePath(output_type, &module_and_message)) {
return false;
}
method_to_module_and_message.emplace(
meth->name(), module_and_message);
method_to_module_and_message.insert(
make_pair(meth->name(), module_and_message));
}
out->Print("}\n");
// Ensure that we've imported all of the relevant messages.
Expand Down

0 comments on commit 4e535a0

Please sign in to comment.