summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-14 18:53:28 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-14 18:53:28 (GMT)
commitfe19d21815632ba179e32ba1517c1337ac407e97 (patch)
tree249852dd6cda7468f3cbb5d36c88fa0367b1ea55 /Python
parent2fd76e478f52dfa3754b620ec9e9615df6c9be1b (diff)
downloadcpython-fe19d21815632ba179e32ba1517c1337ac407e97.zip
cpython-fe19d21815632ba179e32ba1517c1337ac407e97.tar.gz
cpython-fe19d21815632ba179e32ba1517c1337ac407e97.tar.bz2
Issue #3080: imp.new_module() uses Unicode
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/import.c b/Python/import.c
index 5dcbf17..3237ddc 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -3787,10 +3787,10 @@ imp_load_package(PyObject *self, PyObject *args)
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 *