mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Issue #3080: imp.new_module() uses Unicode
This commit is contained in:
parent
2fd76e478f
commit
fe19d21815
1 changed files with 3 additions and 3 deletions
|
@ -3787,10 +3787,10 @@ imp_load_package(PyObject *self, PyObject *args)
|
||||||
static PyObject *
|
static PyObject *
|
||||||
imp_new_module(PyObject *self, PyObject *args)
|
imp_new_module(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
char *name;
|
PyObject *name;
|
||||||
if (!PyArg_ParseTuple(args, "s:new_module", &name))
|
if (!PyArg_ParseTuple(args, "U:new_module", &name))
|
||||||
return NULL;
|
return NULL;
|
||||||
return PyModule_New(name);
|
return PyModule_NewObject(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue