summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-04-11 20:46:23 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-04-11 20:46:23 (GMT)
commit8ab04b4d65586829887822a78d038a33ee7a69fd (patch)
treef276fd46f065664b962b12a2e51d78a44fa86c14 /Python/import.c
parent9b745f6665da02c4349e8a4e592dc42d6524b8d1 (diff)
downloadcpython-8ab04b4d65586829887822a78d038a33ee7a69fd.zip
cpython-8ab04b4d65586829887822a78d038a33ee7a69fd.tar.gz
cpython-8ab04b4d65586829887822a78d038a33ee7a69fd.tar.bz2
Got rid of ifdefs for long-obsolete GUSI versions.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/Python/import.c b/Python/import.c
index 1a06153..3c87506 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1139,9 +1139,6 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen,
#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 @@ case_ok(char *buf, int len, int namelen, char *name)
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)",