mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
import.c: remove now useless arbitrary limit
This commit is contained in:
parent
84b8e40fd7
commit
9561d7c526
1 changed files with 0 additions and 6 deletions
|
|
@ -1980,12 +1980,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_SIZE(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) {
|
||||||
PyObject *meta_path;
|
PyObject *meta_path;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue