[Scipy-svn] r6753 - trunk/scipy/linalg

scipy-svn@scip... scipy-svn@scip...
Sat Sep 11 19:58:50 CDT 2010


Author: ptvirtan
Date: 2010-09-11 19:58:50 -0500 (Sat, 11 Sep 2010)
New Revision: 6753

Modified:
   trunk/scipy/linalg/atlas_version.c
Log:
3K: linalg: make atlas_version module importable on Py3

Modified: trunk/scipy/linalg/atlas_version.c
===================================================================
--- trunk/scipy/linalg/atlas_version.c	2010-09-12 00:58:37 UTC (rev 6752)
+++ trunk/scipy/linalg/atlas_version.c	2010-09-12 00:58:50 UTC (rev 6753)
@@ -1,4 +1,5 @@
 #include "Python.h"
+#include "numpy/npy_3kcompat.h"
 
 static PyObject* version(PyObject* self, PyObject* dummy)
 {
@@ -52,7 +53,8 @@
 #if defined(ATLAS_INFO)
     {
         PyObject *d = PyModule_GetDict(m);
-        PyDict_SetItemString(d,"ATLAS_VERSION",PyString_FromString(ATLAS_INFO));
+        PyDict_SetItemString(d,"ATLAS_VERSION",
+                             PyUString_FromString(ATLAS_INFO));
     }
 #endif
     return RETVAL;



More information about the Scipy-svn mailing list