[Numpy-svn] r8602 - branches/1.5.x/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Thu Aug 5 05:24:59 CDT 2010


Author: rgommers
Date: 2010-08-05 05:24:59 -0500 (Thu, 05 Aug 2010)
New Revision: 8602

Modified:
   branches/1.5.x/numpy/distutils/mingw32ccompiler.py
Log:
3K: (backport of r8595) distutils: fix __code__ object access in mingw32ccompiler

Modified: branches/1.5.x/numpy/distutils/mingw32ccompiler.py
===================================================================
--- branches/1.5.x/numpy/distutils/mingw32ccompiler.py	2010-08-05 10:23:03 UTC (rev 8601)
+++ branches/1.5.x/numpy/distutils/mingw32ccompiler.py	2010-08-05 10:24:59 UTC (rev 8602)
@@ -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