[Numpy-svn] r8242 - trunk/numpy/core/src/multiarray

numpy-svn@scip... numpy-svn@scip...
Sun Feb 21 09:37:06 CST 2010


Author: ptvirtan
Date: 2010-02-21 09:37:06 -0600 (Sun, 21 Feb 2010)
New Revision: 8242

Modified:
   trunk/numpy/core/src/multiarray/numpymemoryview.c
Log:
ENH: core: export format string as UString in numpymemoryview (Py2.6)

Modified: trunk/numpy/core/src/multiarray/numpymemoryview.c
===================================================================
--- trunk/numpy/core/src/multiarray/numpymemoryview.c	2010-02-21 15:36:40 UTC (rev 8241)
+++ trunk/numpy/core/src/multiarray/numpymemoryview.c	2010-02-21 15:37:06 UTC (rev 8242)
@@ -131,7 +131,7 @@
 static PyObject *
 memorysimpleview_format_get(PyMemorySimpleViewObject *self)
 {
-    return PyUnicode_FromString(self->view.format);
+    return PyUString_FromString(self->view.format);
 }
 
 static PyObject *



More information about the Numpy-svn mailing list