]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mac-specific code for setting filetype was outdated.
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 23 Apr 1995 22:06:57 +0000 (22:06 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 23 Apr 1995 22:06:57 +0000 (22:06 +0000)
Lib/py_compile.py

index 98c5db082ee807bc5c151f667cc823483f981c95..e0375ea935e85961e4b9b3b9f3c7fe32c33e86f0 100644 (file)
@@ -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')