commit | fe19d21815632ba179e32ba1517c1337ac407e97 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon Mar 14 14:53:28 2011 -0400 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon Mar 14 14:53:28 2011 -0400 |
tree | 249852dd6cda7468f3cbb5d36c88fa0367b1ea55 | |
parent | 2fd76e478f52dfa3754b620ec9e9615df6c9be1b [diff] [blame] |
Issue #3080: imp.new_module() uses Unicode
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 @@ 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 *