diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-14 18:53:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-14 18:53:28 (GMT) |
commit | fe19d21815632ba179e32ba1517c1337ac407e97 (patch) | |
tree | 249852dd6cda7468f3cbb5d36c88fa0367b1ea55 /Python | |
parent | 2fd76e478f52dfa3754b620ec9e9615df6c9be1b (diff) | |
download | cpython-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.c | 6 |
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 * |