Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 68823:15f9eca5e956
Issue #3080: On DJGPP, case_bytes() returns -1 to signal an error if the file
cannot be found.
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Tue, 22 Mar 2011 01:22:27 +0100 |
| parents | 7f4a4e393058 |
| children | 3114f26d5d54 |
line wrap: on
line diff
--- a/Python/import.c Tue Mar 22 01:09:21 2011 +0100 +++ b/Python/import.c Tue Mar 22 01:22:27 2011 +0100 @@ -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;
