[Python-checkins] r78971 - python/trunk/Lib/py_compile.py

benjamin.peterson python-checkins at python.org
Mon Mar 15 04:00:35 CET 2010


Author: benjamin.peterson
Date: Mon Mar 15 04:00:35 2010
New Revision: 78971

Log:
remove mac 9 code

Modified:
   python/trunk/Lib/py_compile.py

Modified: python/trunk/Lib/py_compile.py
==============================================================================
--- python/trunk/Lib/py_compile.py	(original)
+++ python/trunk/Lib/py_compile.py	Mon Mar 15 04:00:35 2010
@@ -61,15 +61,6 @@
         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 @@
     fc.seek(0, 0)
     fc.write(MAGIC)
     fc.close()
-    set_creator_type(cfile)
 
 def main(args=None):
     """Compile several source files.


More information about the Python-checkins mailing list