diff Python/pythonrun.c @ 30979:86fdf8fe7f17 legacy-trunk

Getting rid of all the code inside #ifdef macintosh too.
author Jack Jansen <jack.jansen@cwi.nl>
date Thu, 20 Nov 2003 01:44:59 +0000
parents b6c139544c16
children f69589179c55
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Nov 19 22:52:23 2003 +0000
+++ b/Python/pythonrun.c	Thu Nov 20 01:44:59 2003 +0000
@@ -27,9 +27,6 @@
 #include "windows.h"
 #endif
 
-#ifdef macintosh
-#include "macglue.h"
-#endif
 extern char *Py_GetPath(void);
 
 extern grammar _PyParser_Grammar; /* From graminit.c */
@@ -755,13 +752,6 @@
 	if (strcmp(ext, ".pyc") == 0 || strcmp(ext, ".pyo") == 0)
 		return 1;
 
-#ifdef macintosh
-	/* On a mac, we also assume a pyc file for types 'PYC ' and 'APPL' */
-	if (PyMac_getfiletype((char *)filename) == 'PYC '
-	    || PyMac_getfiletype((char *)filename) == 'APPL')
-		return 1;
-#endif /* macintosh */
-
 	/* Only look into the file if we are allowed to close it, since
 	   it then should also be seekable. */
 	if (closeit) {
@@ -1542,11 +1532,7 @@
 {
 	Py_Finalize();
 
-#ifdef macintosh
-	PyMac_Exit(sts);
-#else
 	exit(sts);
-#endif
 }
 
 static void