Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 74627:e12b8d3a3d03
Remove now useless arbitrary limit of module name length
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Thu, 26 Jan 2012 00:31:49 +0100 |
| parents | 2b62348a1c03 |
| children | fcd0a67e708e |
line wrap: on
line diff
--- a/Python/import.c Wed Jan 25 22:36:43 2012 +0100 +++ b/Python/import.c Thu Jan 26 00:31:49 2012 +0100 @@ -2052,12 +2052,6 @@ 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);
