mirror of
https://github.com/python/cpython.git
synced 2025-07-17 00:05:20 +00:00
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.
This commit is contained in:
parent
d7e76405c7
commit
501c09a754
2 changed files with 4 additions and 4 deletions
|
@ -636,7 +636,7 @@ _PyImport_FixupBuiltin(PyObject *mod, char *name)
|
|||
}
|
||||
|
||||
PyObject *
|
||||
_PyImport_FindExtensionUnicode(char *name, PyObject *filename)
|
||||
_PyImport_FindExtensionUnicode(const char *name, PyObject *filename)
|
||||
{
|
||||
PyObject *mod, *mdict;
|
||||
PyModuleDef* def;
|
||||
|
@ -680,7 +680,7 @@ _PyImport_FindExtensionUnicode(char *name, PyObject *filename)
|
|||
}
|
||||
|
||||
PyObject *
|
||||
_PyImport_FindBuiltin(char *name)
|
||||
_PyImport_FindBuiltin(const char *name)
|
||||
{
|
||||
PyObject *res, *filename;
|
||||
filename = PyUnicode_FromString(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue