Skip to content

Commit

Permalink
Switch on PyObject_Call
Browse files Browse the repository at this point in the history
  • Loading branch information
shadchin committed Mar 2, 2021
1 parent 0a3bcf1 commit 01cdbd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/google/protobuf/pyext/descriptor.cc
Expand Up @@ -248,7 +248,7 @@ static PyObject* GetOrBuildOptions(const DescriptorClass *descriptor) {
return NULL;
}
ScopedPyObjectPtr value(
PyEval_CallObject(message_class->AsPyObject(), NULL));
PyObject_Call(message_class->AsPyObject(), NULL, NULL));
Py_DECREF(message_class);
if (value == NULL) {
return NULL;
Expand Down

0 comments on commit 01cdbd4

Please sign in to comment.