summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-15 17:50:01 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-15 17:50:01 (GMT)
commit9561d7c5266efdfbd2a4eac877961a4fa8f525f1 (patch)
treede7cdf5191a4a2c3aa89f013cfef888c608cfff9
parent84b8e40fd7229303ddc76f13b33f5fa00687de2a (diff)
downloadcpython-9561d7c5266efdfbd2a4eac877961a4fa8f525f1.zip
cpython-9561d7c5266efdfbd2a4eac877961a4fa8f525f1.tar.gz
cpython-9561d7c5266efdfbd2a4eac877961a4fa8f525f1.tar.bz2
import.c: remove now useless arbitrary limit
-rw-r--r--Python/import.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/import.c b/Python/import.c
index 7902721..adfd2cc 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -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;