mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Remove now useless arbitrary limit of module name length
This commit is contained in:
parent
b0f30c9891
commit
a3dd409b52
1 changed files with 0 additions and 6 deletions
|
|
@ -2052,12 +2052,6 @@ find_module(PyObject *fullname, PyObject *name, PyObject *search_path_list,
|
||||||
if (p_loader != NULL)
|
if (p_loader != NULL)
|
||||||
*p_loader = NULL;
|
*p_loader = NULL;
|
||||||
|
|
||||||
if (PyUnicode_GET_LENGTH(name) > MAXPATHLEN) {
|
|
||||||
PyErr_SetString(PyExc_OverflowError,
|
|
||||||
"module name is too long");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* sys.meta_path import hook */
|
/* sys.meta_path import hook */
|
||||||
if (p_loader != NULL) {
|
if (p_loader != NULL) {
|
||||||
_Py_IDENTIFIER(find_module);
|
_Py_IDENTIFIER(find_module);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue