for the compiled file, or NULL if there's no space in the buffer.
Doesn't set an exception.
- foo.py -> __pycache__/foo.<tag>.pyc */
+ foo.py -> __pycache__/foo.<tag>.pyc
+
+ pathstr is assumed to be "ready".
+*/
static PyObject*
make_compiled_pathname(PyObject *pathstr, int debug)
goto error;
}
#endif
+ if (PyUnicode_READY(pathname) < 0)
+ return NULL;
cpathname = make_compiled_pathname(pathname, !Py_OptimizeFlag);
if (cpathname != NULL)
return NULL;
}
+ if (PyUnicode_READY(pathname) < 0)
+ return NULL;
+
cpathname = make_compiled_pathname(pathname, debug);
Py_DECREF(pathname);