Message83190
| Author |
joexo |
| Recipients |
joexo |
| Date |
2009年03月05日.12:14:36 |
| SpamBayes Score |
0.0026882368 |
| Marked as misclassified |
No |
| Message-id |
<1236255278.63.0.0210000378211.issue5422@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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;
} |
|
History
|
|---|
| 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 |
|