Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9561d7c

Browse files
author
Victor Stinner
committed
import.c: remove now useless arbitrary limit
1 parent 84b8e40 commit 9561d7c

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Python/import.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,12 +1980,6 @@ find_module(PyObject *fullname, PyObject *name, PyObject *search_path_list,
19801980
if (p_loader != NULL)
19811981
*p_loader = NULL;
19821982

1983-
if (PyUnicode_GET_SIZE(name) > MAXPATHLEN) {
1984-
PyErr_SetString(PyExc_OverflowError,
1985-
"module name is too long");
1986-
return NULL;
1987-
}
1988-
19891983
/* sys.meta_path import hook */
19901984
if (p_loader != NULL) {
19911985
PyObject *meta_path;

0 commit comments

Comments
 (0)