Kaydet (Commit) 5a4c0f5c authored tarafından Benjamin Peterson's avatar Benjamin Peterson

remove mac 9 code

üst ca02f3a4
...@@ -61,15 +61,6 @@ class PyCompileError(Exception): ...@@ -61,15 +61,6 @@ class PyCompileError(Exception):
return self.msg 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): def wr_long(f, x):
"""Internal; write a 32-bit int to a file in little-endian order.""" """Internal; write a 32-bit int to a file in little-endian order."""
f.write(chr( x & 0xff)) f.write(chr( x & 0xff))
...@@ -140,7 +131,6 @@ def compile(file, cfile=None, dfile=None, doraise=False): ...@@ -140,7 +131,6 @@ def compile(file, cfile=None, dfile=None, doraise=False):
fc.seek(0, 0) fc.seek(0, 0)
fc.write(MAGIC) fc.write(MAGIC)
fc.close() fc.close()
set_creator_type(cfile)
def main(args=None): def main(args=None):
"""Compile several source files. """Compile several source files.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment