Commit d9a95c0a authored by Peter Eisentraut's avatar Peter Eisentraut

Use PyObject_New instead of PyObject_NEW

The latter is undocumented and the speed gain is negligible.

Jan Urbański
parent 41282111
...@@ -2671,7 +2671,7 @@ PLy_plan_new(void) ...@@ -2671,7 +2671,7 @@ PLy_plan_new(void)
{ {
PLyPlanObject *ob; PLyPlanObject *ob;
if ((ob = PyObject_NEW(PLyPlanObject, &PLy_PlanType)) == NULL) if ((ob = PyObject_New(PLyPlanObject, &PLy_PlanType)) == NULL)
return NULL; return NULL;
ob->plan = NULL; ob->plan = NULL;
...@@ -2727,7 +2727,7 @@ PLy_result_new(void) ...@@ -2727,7 +2727,7 @@ PLy_result_new(void)
{ {
PLyResultObject *ob; PLyResultObject *ob;
if ((ob = PyObject_NEW(PLyResultObject, &PLy_ResultType)) == NULL) if ((ob = PyObject_New(PLyResultObject, &PLy_ResultType)) == NULL)
return NULL; return NULL;
/* ob->tuples = NULL; */ /* ob->tuples = NULL; */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment