diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-15 19:50:01 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-15 19:50:01 +0200 |
commit | 9ce343f33c35b14fe616a15cea33f8f84ccbff85 (patch) | |
tree | 48e2ac03ca017c774305ad7393fdbdff9c5a9949 /Python/import.c | |
parent | 7ac5a3797aae5590c017b16e09f60c79d41679f4 (diff) | |
download | cpython-9ce343f33c35b14fe616a15cea33f8f84ccbff85.tar.gz |
import.c: remove now useless arbitrary limit
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/import.c b/Python/import.c index 7902721a92..adfd2cc5df 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; |