Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 68736:c17bc2026145
Issue #3080: imp.new_module() uses Unicode
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Mon, 14 Mar 2011 14:53:28 -0400 |
| parents | 9aec6f0e4076 |
| children | 238cbd559e9c |
line wrap: on
line diff
--- a/Python/import.c Mon Mar 14 15:19:39 2011 -0400 +++ b/Python/import.c Mon Mar 14 14:53:28 2011 -0400 @@ -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 *
