[Zope3-checkins] CVS: Zope3/src/zope/app/container - ordered.py:1.3
Steve Alexander
steve@cat-box.net
Tue, 24 Jun 2003 06:33:59 -0400
Update of /cvs-repository/Zope3/src/zope/app/container
In directory cvs.zope.org:/tmp/cvs-serv3281/src/zope/app/container
Modified Files:
ordered.py
Log Message:
Corrected doctest that assumes that boolean results return boolean
type objects. This is true only in Python 2.3.
Python 2.2.3 is still the "official" version for Zope 3 development.
=== Zope3/src/zope/app/container/ordered.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/container/ordered.py:1.2 Mon Jun 23 18:46:14 2003
+++ Zope3/src/zope/app/container/ordered.py Tue Jun 24 06:33:59 2003
@@ -28,12 +28,12 @@
""" OrderedContainer maintains entries' order as added and moved.
>>> oc = OrderedContainer()
- >>> IOrderedContainer.isImplementedBy(oc)
- True
+ >>> int(IOrderedContainer.isImplementedBy(oc))
+ 1
>>> len(oc)
0
"""
-
+
implements(IOrderedContainer)
def __init__(self):
@@ -180,7 +180,7 @@
"""
existed = self._data.has_key(key)
-
+
bad = False
if isinstance(key, StringTypes):
try:
@@ -272,5 +272,5 @@
if will_be_dict != was_dict:
raise ValueError("Incompatible key set.")
-
+
self._order = order