[Python-checkins] cpython: Issue #3080: imp.new_module() uses Unicode (original) (raw)
victor.stinner python-checkins at python.org
Sun Mar 20 04:14:02 CET 2011
- Previous message: [Python-checkins] cpython: Issue #3080: find_module() returns the path as Unicode
- Next message: [Python-checkins] cpython: Fix imp.cache_from_source() if the directory name contains a dot
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
http://hg.python.org/cpython/rev/c17bc2026145 changeset: 68736:c17bc2026145 user: Victor Stinner <victor.stinner at haypocalc.com> date: Mon Mar 14 14:53:28 2011 -0400 summary: Issue #3080: imp.new_module() uses Unicode
files: Python/import.c
diff --git a/Python/import.c b/Python/import.c --- 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 *
-- Repository URL: http://hg.python.org/cpython
- Previous message: [Python-checkins] cpython: Issue #3080: find_module() returns the path as Unicode
- Next message: [Python-checkins] cpython: Fix imp.cache_from_source() if the directory name contains a dot
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]