From 9561d7c5266efdfbd2a4eac877961a4fa8f525f1 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 15 Sep 2011 19:50:01 +0200 Subject: import.c: remove now useless arbitrary limit --- Python/import.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Python/import.c b/Python/import.c index 7902721..adfd2cc 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1980,12 +1980,6 @@ find_module(PyObject *fullname, PyObject *name, PyObject *search_path_list, if (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 */ if (p_loader != NULL) { PyObject *meta_path; -- cgit v0.12