summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2012-01-25 23:31:49 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2012-01-25 23:31:49 (GMT)
commita3dd409b521107c08f918528991e33765ddda808 (patch)
treea707ded75d39b19c0df53b24c429c7981488ab73 /Python
parentb0f30c9891a3ef45d616bf3ae73d764fd539946b (diff)
downloadcpython-a3dd409b521107c08f918528991e33765ddda808.zip
cpython-a3dd409b521107c08f918528991e33765ddda808.tar.gz
cpython-a3dd409b521107c08f918528991e33765ddda808.tar.bz2
Remove now useless arbitrary limit of module name length
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/import.c b/Python/import.c
index d5b89d5..8bd7a61 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);