[Zope3-checkins] CVS: Zope3/src/zope/interface - _flatten.py:1.3

Steve Alexander steve@cat-box.net
Mon, 3 Feb 2003 10:54:28 -0500


Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv22545/src/zope/interface

Modified Files:
	_flatten.py 
Log Message:
fixed case where there could be two Nones in the returned list


=== Zope3/src/zope/interface/_flatten.py 1.2 => 1.3 ===
--- Zope3/src/zope/interface/_flatten.py:1.2	Wed Dec 25 09:13:42 2002
+++ Zope3/src/zope/interface/_flatten.py	Mon Feb  3 10:54:25 2003
@@ -40,7 +40,7 @@
             flattened.append(interface)
     flattened.reverse()
 
-    if include_None:
+    if include_None and None not in flattened:
         flattened.append(None)
 
     return flattened