mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Issue #3080: On DJGPP, case_bytes() returns -1 to signal an error if the file
cannot be found.
This commit is contained in:
parent
0a5f65ab0a
commit
9c61e24be4
1 changed files with 1 additions and 1 deletions
|
@ -2084,7 +2084,7 @@ case_bytes(char *buf, Py_ssize_t len, Py_ssize_t namelen, const char *name)
|
||||||
PyErr_Format(PyExc_NameError,
|
PyErr_Format(PyExc_NameError,
|
||||||
"Can't find file for module %.100s\n(filename %.300s)",
|
"Can't find file for module %.100s\n(filename %.300s)",
|
||||||
name, buf);
|
name, buf);
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
return strncmp(ffblk.ff_name, name, namelen) == 0;
|
return strncmp(ffblk.ff_name, name, namelen) == 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue