From: Victor Stinner Date: Wed, 25 Jan 2012 23:31:49 +0000 (+0100) Subject: Remove now useless arbitrary limit of module name length X-Git-Tag: v3.3.0a1~299^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3dd409b521107c08f918528991e33765ddda808;p=python Remove now useless arbitrary limit of module name length --- diff --git a/Python/import.c b/Python/import.c index d5b89d5966..8bd7a61722 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2052,12 +2052,6 @@ find_module(PyObject *fullname, PyObject *name, PyObject *search_path_list, if (p_loader != NULL) *p_loader = NULL; - if (PyUnicode_GET_LENGTH(name) > MAXPATHLEN) { - PyErr_SetString(PyExc_OverflowError, - "module name is too long"); - return NULL; - } - /* sys.meta_path import hook */ if (p_loader != NULL) { _Py_IDENTIFIER(find_module);