summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-21 06:03:43 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-21 06:03:43 (GMT)
commitd7e9f608c33264f151264eb604bbcfdafe8c7a02 (patch)
treed59e1b1eb61db9589f2b27e5fa84ab93b80834a8 /Python/import.c
parentfdca6d8599e46ee7fc7844a798666fc60923fbe5 (diff)
downloadcpython-d7e9f608c33264f151264eb604bbcfdafe8c7a02.zip
cpython-d7e9f608c33264f151264eb604bbcfdafe8c7a02.tar.gz
cpython-d7e9f608c33264f151264eb604bbcfdafe8c7a02.tar.bz2
Revert accidental checkins from last commit.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/Python/import.c b/Python/import.c
index dc97940..678a30b 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1395,7 +1395,6 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
filemode = fdp->mode;
if (filemode[0] == 'U')
filemode = "r" PY_STDIOTEXTMODE;
- errno = 0;
fp = fopen(buf, filemode);
if (fp != NULL) {
if (case_ok(buf, len, namelen, name))
@@ -1405,15 +1404,6 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
fp = NULL;
}
}
- /* issue a warning if the file is there */
- /*if (errno != ENOENT) {
- char warnstr[MAXPATHLEN+80];
- sprintf(warnstr, "Not importing '%.*s': ");
-
- if (PyErr_Warn(PyExc_ImportWarning,
- warnstr)) {
-
- }*/
#if defined(PYOS_OS2)
/* restore the saved snapshot */
strcpy(buf, saved_buf);