summaryrefslogtreecommitdiffstats
path: root/Lib/py_compile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/py_compile.py')
-rw-r--r--Lib/py_compile.py6
1 files changed, 3 insertions, 3 deletions
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 @@ 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')