[Python-checkins] cpython: import.c: remove now useless arbitrary limit

victor.stinner python-checkins at python.org
Thu Sep 15 19:52:43 CEST 2011


http://hg.python.org/cpython/rev/03843a8d3244
changeset: 72388:03843a8d3244
parent: 72386:3ff9a2d5f5e5
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Thu Sep 15 19:50:01 2011 +0200
summary:
 import.c: remove now useless arbitrary limit
files:
 Python/import.c | 6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -1980,12 +1980,6 @@
 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;
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /