Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 6454:b5b35a0cf1aa legacy-trunk
Moved mac-specific speedup to a different place (Jack)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 08 Oct 1997 15:25:08 +0000 |
| parents | b68185d94777 |
| children | b2dfff06789c |
line wrap: on
line diff
--- a/Python/import.c Wed Oct 08 15:23:55 1997 +0000 +++ b/Python/import.c Wed Oct 08 15:25:08 1997 +0000 @@ -709,11 +709,6 @@ #endif ) buf[len++] = SEP; -#ifdef macintosh - fdp = PyMac_FindModuleExtension(buf, &len, name); - if ( fdp ) - fp = fopen(buf, fdp->mode); -#else #ifdef IMPORT_8x3_NAMES /* see if we are searching in directory dos_8x3 */ if (len > 7 && !strncmp(buf + len - 8, "dos_8x3", 7)){ @@ -740,6 +735,11 @@ #else /* XXX How are you going to test for directories? */ #endif +#ifdef macintosh + fdp = PyMac_FindModuleExtension(buf, &len, name); + if (fdp) + fp = fopen(buf, fdp->mode); +#else for (fdp = _PyImport_Filetab; fdp->suffix != NULL; fdp++) { strcpy(buf+len, fdp->suffix); if (Py_VerboseFlag > 1)
