diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-22 00:22:27 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-22 00:22:27 (GMT) |
commit | 9c61e24be47d27941ebd5c639fa3fce47e26f00b (patch) | |
tree | 0ed8e28b92d0e6da6aa5fac8b1f8457424a5278a /Python/import.c | |
parent | 0a5f65ab0af44aed16da89abb2543e8242f927ea (diff) | |
download | cpython-9c61e24be47d27941ebd5c639fa3fce47e26f00b.zip cpython-9c61e24be47d27941ebd5c639fa3fce47e26f00b.tar.gz cpython-9c61e24be47d27941ebd5c639fa3fce47e26f00b.tar.bz2 |
Issue #3080: On DJGPP, case_bytes() returns -1 to signal an error if the file
cannot be found.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index abc3906..3b8ce93 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2084,7 +2084,7 @@ case_bytes(char *buf, Py_ssize_t len, Py_ssize_t namelen, const char *name) 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; |