[Zope3-checkins] CVS: Zope3/src/zope/products/statictree - node.py:1.4

Philipp von Weitershausen philikon at philikon.de
Mon Feb 16 10:12:27 EST 2004


Update of /cvs-repository/Zope3/src/zope/products/statictree
In directory cvs.zope.org:/tmp/cvs-serv7406

Modified Files:
	node.py 
Log Message:
Test None for identity, not equality.


=== Zope3/src/zope/products/statictree/node.py 1.3 => 1.4 ===
--- Zope3/src/zope/products/statictree/node.py:1.3	Sun Feb 15 14:28:19 2004
+++ Zope3/src/zope/products/statictree/node.py	Mon Feb 16 10:12:25 2004
@@ -117,7 +117,7 @@
     def getFlatDicts(self, maxdepth=0, row_state=None):
         """See zope.products.statictree.interfaces.INode"""
         nodes = []
-        if row_state == None:
+        if row_state is None:
             row_state = []
         encoder = zapi.getUtility(self.context, ITreeStateEncoder)
 




More information about the Zope3-Checkins mailing list