]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
import.c: remove now useless arbitrary limit
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 15 Sep 2011 17:50:01 +0000 (19:50 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 15 Sep 2011 17:50:01 +0000 (19:50 +0200)
Python/import.c

index 7902721a92ee2f4111f709cd6f07ca8671e6697a..adfd2cc5df9d6fd191badb65426678d30bb1b1e9 100644 (file)
@@ -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;