From: Benjamin Peterson Date: Mon, 15 Mar 2010 03:00:35 +0000 (+0000) Subject: remove mac 9 code X-Git-Tag: v2.7b1~353 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a4c0f5cc2328d2f1dee504e1f71292b2290fd4a;p=python remove mac 9 code --- 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.