Message83190
py3k 3.01
static int
update_compiled_module(PyCodeObject *co, char *pathname)
{
PyObject *oldname, *newname;
if (!PyUnicode_CompareWithASCIIString(co->co_filename,
pathname))
return 0;
/* string pathname related with FILE SYSTEM !!!
* old code is :
* newname = PyUnicode_FromString(pathname);
*/
newname = PyUnicode_DecodeFSDefault(pathname);
if (newname == NULL)
return -1;
oldname = co->co_filename;
Py_INCREF(oldname);
update_code_filenames(co, oldname, newname);
Py_DECREF(oldname);
Py_DECREF(newname);
return 1;
} |
|
Date |
User |
Action |
Args |
2009-03-05 12:14:38 | joexo | set | recipients:
+ joexo |
2009-03-05 12:14:38 | joexo | set | messageid: <1236255278.63.0.0210000378211.issue5422@psf.upfronthosting.co.za> |
2009-03-05 12:14:36 | joexo | link | issue5422 messages |
2009-03-05 12:14:36 | joexo | create | |
|