[Scipy-svn] r3447 - trunk/scipy/sparse
scipy-svn@scip...
scipy-svn@scip...
Fri Oct 19 13:05:31 CDT 2007
Author: rkern
Date: 2007-10-19 13:05:30 -0500 (Fri, 19 Oct 2007)
New Revision: 3447
Modified:
trunk/scipy/sparse/sparse.py
Log:
Remove generator expression for 2.3 compatibility.
Modified: trunk/scipy/sparse/sparse.py
===================================================================
--- trunk/scipy/sparse/sparse.py 2007-10-18 22:25:30 UTC (rev 3446)
+++ trunk/scipy/sparse/sparse.py 2007-10-19 18:05:30 UTC (rev 3447)
@@ -175,8 +175,8 @@
def listprint(self, start, stop):
"""Provides a way to print over a single index.
"""
- return '\n'.join(' %s\t%s' % (self.rowcol(ind), self.getdata(ind))
- for ind in xrange(start,stop)) + '\n'
+ return '\n'.join([' %s\t%s' % (self.rowcol(ind), self.getdata(ind))
+ for ind in xrange(start,stop)]) + '\n'
def __repr__(self):
nnz = self.getnnz()
More information about the Scipy-svn
mailing list