summaryrefslogtreecommitdiff
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-08-16 03:47:52 +0000
committerRaymond Hettinger <python@rcn.com>2005-08-16 03:47:52 +0000
commitc24bad388de92cc10a6dd722f0a1edc6cbed0fd8 (patch)
treea52fd952e5d778ec1f2bf3f378083feafdae1c84 /Python/marshal.c
parentcde454db45802d04228b4168caf57cac47727f47 (diff)
downloadcpython-c24bad388de92cc10a6dd722f0a1edc6cbed0fd8.tar.gz
Add a C API for sets and frozensets.
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;