Commits

Victor Stinner  committed e12b8d3

Remove now useless arbitrary limit of module name length

  • Participants
  • Parent commits e68ddfc

Comments (0)

Files changed (1)

File Python/import.c

     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);