diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-15 03:00:35 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-15 03:00:35 +0000 |
commit | 5a4c0f5cc2328d2f1dee504e1f71292b2290fd4a (patch) | |
tree | 702bcedf52f10d6175d39ec68df985b30dabf4d4 /Lib/py_compile.py | |
parent | ca02f3a4d650b7fc9a26b25bdd5cf159837a8a88 (diff) | |
download | cpython-git-5a4c0f5cc2328d2f1dee504e1f71292b2290fd4a.tar.gz |
remove mac 9 code
Diffstat (limited to 'Lib/py_compile.py')
-rw-r--r-- | Lib/py_compile.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py index 89e80f8e6f..07c9c2a4fd 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -61,15 +61,6 @@ class PyCompileError(Exception): return self.msg -# Define an internal helper according to the platform -if os.name == "mac": - import MacOS - def set_creator_type(file): - MacOS.SetCreatorAndType(file, 'Pyth', 'PYC ') -else: - def set_creator_type(file): - pass - def wr_long(f, x): """Internal; write a 32-bit int to a file in little-endian order.""" f.write(chr( x & 0xff)) @@ -140,7 +131,6 @@ def compile(file, cfile=None, dfile=None, doraise=False): fc.seek(0, 0) fc.write(MAGIC) fc.close() - set_creator_type(cfile) def main(args=None): """Compile several source files. |