[Scipy-svn] r2147 - trunk/Lib/io

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Aug 3 18:44:13 CDT 2006


Author: oliphant
Date: 2006-08-03 18:44:12 -0500 (Thu, 03 Aug 2006)
New Revision: 2147

Modified:
   trunk/Lib/io/mio.py
Log:
Fix exact type-checking for array

Modified: trunk/Lib/io/mio.py
===================================================================
--- trunk/Lib/io/mio.py	2006-08-03 20:57:51 UTC (rev 2146)
+++ trunk/Lib/io/mio.py	2006-08-03 23:44:12 UTC (rev 2147)
@@ -857,7 +857,7 @@
     O = 0
     for variable in dict.keys():
         var = dict[variable]
-        if type(var) is not ArrayType:
+        if not isinstance(var, ArrayType):
             continue
         if var.dtype.char == 'S1':
             T = 1



More information about the Scipy-svn mailing list