[Python-checkins] cpython: Issue #3080: imp.new_module() uses Unicode
victor.stinner
python-checkins at python.org
Sun Mar 20 04:14:02 CET 2011
http://hg.python.org/cpython/rev/c17bc2026145
changeset: 68736:c17bc2026145
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Mon Mar 14 14:53:28 2011 -0400
summary:
Issue #3080: imp.new_module() uses Unicode
files:
Python/import.c
diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -3787,10 +3787,10 @@
static PyObject *
imp_new_module(PyObject *self, PyObject *args)
{
- char *name;
- if (!PyArg_ParseTuple(args, "s:new_module", &name))
+ PyObject *name;
+ if (!PyArg_ParseTuple(args, "U:new_module", &name))
return NULL;
- return PyModule_New(name);
+ return PyModule_NewObject(name);
}
static PyObject *
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list