[Python-checkins] cpython: Issue #3080: On DJGPP, case_bytes() returns -1 to signal an error if the file

victor.stinner python-checkins at python.org
Tue Mar 22 01:22:48 CET 2011


http://hg.python.org/cpython/rev/15f9eca5e956
changeset:   68823:15f9eca5e956
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Tue Mar 22 01:22:27 2011 +0100
summary:
  Issue #3080: On DJGPP, case_bytes() returns -1 to signal an error if the file
cannot be found.

files:
  Python/import.c

diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -2084,7 +2084,7 @@
         PyErr_Format(PyExc_NameError,
           "Can't find file for module %.100s\n(filename %.300s)",
           name, buf);
-        return 0;
+        return -1;
     }
     return strncmp(ffblk.ff_name, name, namelen) == 0;
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list