diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-14 14:53:28 -0400 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-14 14:53:28 -0400 |
commit | fe19d21815632ba179e32ba1517c1337ac407e97 (patch) | |
tree | 249852dd6cda7468f3cbb5d36c88fa0367b1ea55 /Python/import.c | |
parent | 2fd76e478f52dfa3754b620ec9e9615df6c9be1b (diff) | |
download | cpython-git-fe19d21815632ba179e32ba1517c1337ac407e97.tar.gz |
Issue #3080: imp.new_module() uses Unicode
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/import.c b/Python/import.c index 5dcbf17710..3237ddc84e 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 * |