From beb3101b051e415cb18ba844e0187a8caa7ac3fd Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 16 Aug 2005 03:47:52 +0000 Subject: Add a C API for sets and frozensets. --- Python/marshal.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Python') 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; -- cgit v1.2.1