summaryrefslogtreecommitdiff
path: root/Python/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 3eb7b1ec7a..20d637d2b2 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -773,11 +773,9 @@ r_object(RFILE *p)
if (v == NULL)
return v;
if (type == TYPE_SET)
- v3 = PyObject_CallFunctionObjArgs(
- (PyObject *)&PySet_Type, v, NULL);
+ v3 = PySet_New(v);
else
- v3 = PyObject_CallFunctionObjArgs(
- (PyObject *)&PyFrozenSet_Type, v, NULL);
+ v3 = PyFrozenSet_New(v);
Py_DECREF(v);
return v3;