summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-01-26 18:34:34 -0500
committerBrett Cannon <brett@python.org>2012-01-26 18:34:34 -0500
commite9cd900585d44b418b2a2235a7eec6e4b362798f (patch)
tree08c29a54e22ffa58670ba749586a3167a4abcbc4 /Python
parentfc70cbcb9a62f3c36820f1f7dc8d0c30b0135558 (diff)
parentc1b5d34ede2701cf45f35cf52d33d8dca5059ec6 (diff)
downloadcpython-git-e9cd900585d44b418b2a2235a7eec6e4b362798f.tar.gz
Merge
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 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);