Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 17090:7e938f0e9a49 legacy-trunk
Case-checking was broken on the Macintosh. Fixed.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Tue, 20 Mar 2001 23:09:54 +0000 |
| parents | c5a417e8d84c |
| children | c5bab794dcde |
line wrap: on
line diff
--- a/Python/import.c Tue Mar 20 21:55:51 2001 +0000 +++ b/Python/import.c Tue Mar 20 23:09:54 2001 +0000 @@ -979,13 +979,13 @@ #endif #ifdef macintosh fdp = PyMac_FindModuleExtension(buf, &len, name); - if (fdp) - fp = fopen(buf, fdp->mode); + if (fdp) { #else for (fdp = _PyImport_Filetab; fdp->suffix != NULL; fdp++) { strcpy(buf+len, fdp->suffix); if (Py_VerboseFlag > 1) PySys_WriteStderr("# trying %s\n", buf); +#endif /* !macintosh */ fp = fopen(buf, fdp->mode); if (fp != NULL) { if (case_ok(buf, len, namelen, name)) @@ -996,7 +996,6 @@ } } } -#endif /* !macintosh */ if (fp != NULL) break; }
