Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2677c7 commit 1c13f84Copy full SHA for 1c13f84
1 file changed
Python/marshal.c
@@ -1239,7 +1239,6 @@ PyObject *
1239
PyMarshal_WriteObjectToString(PyObject *x, int version)
1240
{
1241
WFILE wf;
1242
- PyObject *res = NULL;
1243
1244
wf.fp = NULL;
1245
wf.readable = NULL;
@@ -1273,12 +1272,7 @@ PyMarshal_WriteObjectToString(PyObject *x, int version)
1273
1272
:"object too deeply nested to marshal");
1274
return NULL;
1275
}
1276
- if (wf.str != NULL) {
1277
- /* XXX Quick hack -- need to do this differently */
1278
- res = PyBytes_FromObject(wf.str);
1279
- Py_DECREF(wf.str);
1280
- }
1281
- return res;
+ return wf.str;
1282
1283
1284
/* And an interface for Python programs... */
0 commit comments