Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 22957:4f9d5ea4f37d legacy-trunk
Got rid of ifdefs for long-obsolete GUSI versions.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 11 Apr 2002 20:46:23 +0000 |
| parents | 15c18bc9d715 |
| children | 8291473fde3e |
line wrap: on
line diff
--- a/Python/import.c Thu Apr 11 20:41:18 2002 +0000 +++ b/Python/import.c Thu Apr 11 20:46:23 2002 +0000 @@ -1139,9 +1139,6 @@ #elif defined(macintosh) #include <TextUtils.h> -#ifdef USE_GUSI1 -#include "TFileSpec.h" /* for Path2FSSpec() */ -#endif #elif defined(__MACH__) && defined(__APPLE__) && defined(HAVE_DIRENT_H) #include <sys/types.h> @@ -1215,25 +1212,7 @@ if (Py_GETENV("PYTHONCASEOK") != NULL) return 1; -#ifndef USE_GUSI1 err = FSMakeFSSpec(0, 0, Pstring(buf), &fss); -#else - /* GUSI's Path2FSSpec() resolves all possible aliases nicely on - the way, which is fine for all directories, but here we need - the original name of the alias file (say, Dlg.ppc.slb, not - toolboxmodules.ppc.slb). */ - char *colon; - err = Path2FSSpec(buf, &fss); - if (err == noErr) { - colon = strrchr(buf, ':'); /* find filename */ - if (colon != NULL) - err = FSMakeFSSpec(fss.vRefNum, fss.parID, - Pstring(colon+1), &fss); - else - err = FSMakeFSSpec(fss.vRefNum, fss.parID, - fss.name, &fss); - } -#endif if (err) { PyErr_Format(PyExc_NameError, "Can't find file for module %.100s\n(filename %.300s)",
