[Zope-Checkins] CVS: Zope2 - PersistentMapping.py:1.10

chrism@serenade.digicool.com chrism@serenade.digicool.com
Tue, 5 Jun 2001 14:49:59 -0400


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory serenade:/home/chrism/sandboxes/Post24BugFixing/lib/python/ZODB

Modified Files:
	PersistentMapping.py 
Log Message:
re-modified keys() method to prevent mutability in case where keys list is recomputed.


--- Updated File PersistentMapping.py in package Zope2/lib/python/ZODB --
--- PersistentMapping.py	2001/06/05 18:45:33	1.9
+++ PersistentMapping.py	2001/06/05 18:49:58	1.10
@@ -146,7 +146,7 @@
             lambda k: not isinstance(k,types.StringType) or k[:1]!='_',
             self._container.keys())
         keys.sort()
-        return keys
+        return list(keys)
 
     def update(self, b):
         a=self._container



--- Updated File PersistentMapping.py in package Zope2 --
--- PersistentMapping.py	2001/06/05 18:45:33	1.9
+++ PersistentMapping.py	2001/06/05 18:49:58	1.10
@@ -146,7 +146,7 @@
             lambda k: not isinstance(k,types.StringType) or k[:1]!='_',
             self._container.keys())
         keys.sort()
-        return keys
+        return list(keys)
 
     def update(self, b):
         a=self._container