summaryrefslogtreecommitdiffstats
path: root/Lib/py_compile.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-04-23 22:06:57 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-04-23 22:06:57 (GMT)
commite99c824bad777224cdba0ea3f2ca6ef4bc94701f (patch)
tree5e93b6ea76dc8dd059f27dff99d9965b7646b901 /Lib/py_compile.py
parent5dbc7231a0cb14bc01e25fa93cf4f972744302f0 (diff)
downloadcpython-e99c824bad777224cdba0ea3f2ca6ef4bc94701f.zip
cpython-e99c824bad777224cdba0ea3f2ca6ef4bc94701f.tar.gz
cpython-e99c824bad777224cdba0ea3f2ca6ef4bc94701f.tar.bz2
Mac-specific code for setting filetype was outdated.
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')