From e99c824bad777224cdba0ea3f2ca6ef4bc94701f Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sun, 23 Apr 1995 22:06:57 +0000 Subject: [PATCH] Mac-specific code for setting filetype was outdated. --- Lib/py_compile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/py_compile.py b/Lib/py_compile.py index 98c5db082ee..e0375ea935e 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -25,6 +25,6 @@ def compile(file, cfile = None): 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')