[Zodb-checkins] CVS: Zope/lib/python/BTrees - OOBTree.py:1.8 OIBTree.py:1.8 IOBTree.py:1.7 IIBTree.py:1.7
Jeremy Hylton
jeremy@zope.com
Tue, 18 Feb 2003 14:05:19 -0500
Update of /cvs-repository/Zope/lib/python/BTrees
In directory cvs.zope.org:/tmp/cvs-serv3407
Modified Files:
OOBTree.py OIBTree.py IOBTree.py IIBTree.py
Log Message:
Explicit assignment of __module__ to classes, so that we don't catch
types that grow an __module__ in future versions of Python.
=== Zope/lib/python/BTrees/OOBTree.py 1.7 => 1.8 ===
--- Zope/lib/python/BTrees/OOBTree.py:1.7 Wed Aug 14 17:32:23 2002
+++ Zope/lib/python/BTrees/OOBTree.py Tue Feb 18 14:05:18 2003
@@ -17,6 +17,5 @@
# We don't really want _ names in pickles, so update all of the __module__
# references.
-for o in globals().values():
- if hasattr(o, '__module__'):
- o.__module__=__name__
+for obj in OOBucket, OOBTree, OOSet, OOTreeSet:
+ obj.__module__ = __name__
=== Zope/lib/python/BTrees/OIBTree.py 1.7 => 1.8 ===
--- Zope/lib/python/BTrees/OIBTree.py:1.7 Wed Aug 14 17:32:23 2002
+++ Zope/lib/python/BTrees/OIBTree.py Tue Feb 18 14:05:18 2003
@@ -17,6 +17,5 @@
# We don't really want _ names in pickles, so update all of the __module__
# references.
-for o in globals().values():
- if hasattr(o, '__module__'):
- o.__module__=__name__
+for obj in OIBucket, OIBTree, OISet, OITreeSet:
+ obj.__module__ = __name__
=== Zope/lib/python/BTrees/IOBTree.py 1.6 => 1.7 ===
--- Zope/lib/python/BTrees/IOBTree.py:1.6 Wed Aug 14 17:32:23 2002
+++ Zope/lib/python/BTrees/IOBTree.py Tue Feb 18 14:05:18 2003
@@ -17,6 +17,5 @@
# We don't really want _ names in pickles, so update all of the __module__
# references.
-##for o in globals().values():
-## if hasattr(o, '__module__'):
-## o.__module__=__name__
+for obj in IOBucket, IOBTree, IOSet, IOTreeSet:
+ obj.__module__ = __name__
=== Zope/lib/python/BTrees/IIBTree.py 1.6 => 1.7 ===
--- Zope/lib/python/BTrees/IIBTree.py:1.6 Wed Aug 14 17:32:23 2002
+++ Zope/lib/python/BTrees/IIBTree.py Tue Feb 18 14:05:18 2003
@@ -17,6 +17,5 @@
# We don't really want _ names in pickles, so update all of the __module__
# references.
-##for o in globals().values():
-## if hasattr(o, '__module__'):
-## o.__module__=__name__
+for obj in IIBucket, IIBTree, IISet, IITreeSet:
+ obj.__module__ = __name__