This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:38joexosetrecipients: + joexo
2009-03-05 12:14:38joexosetmessageid: <1236255278.63.0.0210000378211.issue5422@psf.upfronthosting.co.za>
2009-03-05 12:14:36joexolinkissue5422 messages
2009-03-05 12:14:36joexocreate