[Numpy-svn] r8595 - trunk/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Tue Aug 3 17:21:09 CDT 2010


Author: ptvirtan
Date: 2010-08-03 17:21:09 -0500 (Tue, 03 Aug 2010)
New Revision: 8595

Modified:
   trunk/numpy/distutils/mingw32ccompiler.py
Log:
3K: distutils: fix __code__ object access in mingw32ccompiler

Modified: trunk/numpy/distutils/mingw32ccompiler.py
===================================================================
--- trunk/numpy/distutils/mingw32ccompiler.py	2010-08-03 21:53:13 UTC (rev 8594)
+++ trunk/numpy/distutils/mingw32ccompiler.py	2010-08-03 22:21:09 UTC (rev 8595)
@@ -174,7 +174,10 @@
             func = distutils.cygwinccompiler.CygwinCCompiler.link
         else:
             func = UnixCCompiler.link
-        func(*args[:func.im_func.func_code.co_argcount])
+        if sys.version_info[0] >= 3:
+            func(*args[:func.__code__.co_argcount])
+        else:
+            func(*args[:func.im_func.func_code.co_argcount])
         return
 
     def object_filenames (self,



More information about the Numpy-svn mailing list