Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 68110:44cc9ef43127
Issue #3080: Mark _PyImport_FindBuiltin() argument as constant
And as a consequence, mark also name argument of
_PyImport_FindExtensionUnicode() constant too. But I plan to change this
argument type to PyObject* later.
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Wed, 23 Feb 2011 00:02:00 +0000 |
| parents | 2f89cbbec0b4 |
| children | 0e7180e4c3cd |
line wrap: on
line diff
--- a/Python/import.c Tue Feb 22 23:38:34 2011 +0000 +++ b/Python/import.c Wed Feb 23 00:02:00 2011 +0000 @@ -636,7 +636,7 @@ } PyObject * -_PyImport_FindExtensionUnicode(char *name, PyObject *filename) +_PyImport_FindExtensionUnicode(const char *name, PyObject *filename) { PyObject *mod, *mdict; PyModuleDef* def; @@ -680,7 +680,7 @@ } PyObject * -_PyImport_FindBuiltin(char *name) +_PyImport_FindBuiltin(const char *name) { PyObject *res, *filename; filename = PyUnicode_FromString(name);
