diff options
author | Brett Cannon <brett@python.org> | 2012-01-26 18:34:34 -0500 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-01-26 18:34:34 -0500 |
commit | e9cd900585d44b418b2a2235a7eec6e4b362798f (patch) | |
tree | 08c29a54e22ffa58670ba749586a3167a4abcbc4 /Python | |
parent | fc70cbcb9a62f3c36820f1f7dc8d0c30b0135558 (diff) | |
parent | c1b5d34ede2701cf45f35cf52d33d8dca5059ec6 (diff) | |
download | cpython-git-e9cd900585d44b418b2a2235a7eec6e4b362798f.tar.gz |
Merge
Diffstat (limited to 'Python')
-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 d5b89d5966..8bd7a61722 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); |