[Scipy-svn] r3521 - trunk/scipy/io

scipy-svn at scipy.org scipy-svn at scipy.org
Tue Nov 13 00:49:07 EST 2007


Author: jarrod.millman
Date: 2007-11-12 23:49:05 -0600 (Mon, 12 Nov 2007)
New Revision: 3521

Modified:
   trunk/scipy/io/dumbdbm_patched.py
Log:
synch with weave version of this module


Modified: trunk/scipy/io/dumbdbm_patched.py
===================================================================
--- trunk/scipy/io/dumbdbm_patched.py	2007-11-13 05:24:31 UTC (rev 3520)
+++ trunk/scipy/io/dumbdbm_patched.py	2007-11-13 05:49:05 UTC (rev 3521)
@@ -106,7 +106,7 @@
         f.close()
 
     def __setitem__(self, key, val):
-        if not type(key) == type('') == type(val):
+        if not isinstance(key, str) or not isinstance(val, str):
             raise TypeError, "keys and values must be strings"
         if not self._index.has_key(key):
             (pos, siz) = self._addval(val)




More information about the Scipy-svn mailing list