From: Victor Stinner Date: Thu, 15 Sep 2011 17:50:01 +0000 (+0200) Subject: import.c: remove now useless arbitrary limit X-Git-Tag: v3.3.0a1~1530 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9561d7c5266efdfbd2a4eac877961a4fa8f525f1;p=thirdparty%2FPython%2Fcpython.git import.c: remove now useless arbitrary limit --- diff --git a/Python/import.c b/Python/import.c index 7902721a92ee..adfd2cc5df9d 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;