[Scipy-svn] r7135 - branches/0.9.x/scipy/io
scipy-svn at scipy.org
scipy-svn at scipy.org
Thu Feb 10 09:37:40 EST 2011
Author: rgommers
Date: 2011-02-10 08:37:40 -0600 (Thu, 10 Feb 2011)
New Revision: 7135
Modified:
branches/0.9.x/scipy/io/idl.py
Log:
BUG: io.idl: Fix readsav() on Python 2.4
(backport of r7122)
Modified: branches/0.9.x/scipy/io/idl.py
===================================================================
--- branches/0.9.x/scipy/io/idl.py 2011-02-10 14:37:14 UTC (rev 7134)
+++ branches/0.9.x/scipy/io/idl.py 2011-02-10 14:37:40 UTC (rev 7135)
@@ -291,7 +291,7 @@
# Reshape array if needed
if array_desc['ndims'] > 1:
- dims = array_desc['dims'][:array_desc['ndims']]
+ dims = array_desc['dims'][:int(array_desc['ndims'])]
dims.reverse()
array = array.reshape(dims)
More information about the Scipy-svn
mailing list