summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-08 15:25:08 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-08 15:25:08 (GMT)
commit9a61dc90e21b2cdf9e0d805991fa69e1eefa3953 (patch)
tree9914157b5ee918caff6c104cbffcd32ea63b680a /Python/import.c
parentac1fc95c3ca2dd51b63152991b742496838c5e01 (diff)
downloadcpython-9a61dc90e21b2cdf9e0d805991fa69e1eefa3953.zip
cpython-9a61dc90e21b2cdf9e0d805991fa69e1eefa3953.tar.gz
cpython-9a61dc90e21b2cdf9e0d805991fa69e1eefa3953.tar.bz2
Moved mac-specific speedup to a different place (Jack)
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/import.c b/Python/import.c
index 63bda79..465397c 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -709,11 +709,6 @@ find_module(name, path, buf, buflen, p_fp)
#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 @@ find_module(name, path, buf, buflen, p_fp)
#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)