Mac-specific code for setting filetype was outdated.
diff --git a/Lib/py_compile.py b/Lib/py_compile.py
index 98c5db0..e0375ea 100644
--- a/Lib/py_compile.py
+++ b/Lib/py_compile.py
@@ -25,6 +25,6 @@
 	marshal.dump(codeobject, fc)
 	fc.close()
 	if os.name == 'mac':
-		import MacOS
-		MacOS.SetFileType(cfile, 'PYC ', 'PYTH')
-		MacOS.SetFileType(file, 'TEXT', 'PYTH')
+		import macfs
+		macfs.FSSpec(cfile).SetCreatorType('PYTH', 'PYC ')
+		macfs.FSSpec(file).SetCreatorType('PYTH', 'TEXT')