[Zodb-checkins] CVS: Zope3/src/zope/interface - declarations.py:1.16

Jeremy Hylton jeremy at zope.com
Mon Jun 30 13:32:47 EDT 2003


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

Modified Files:
	declarations.py 
Log Message:
Remove function definition rendered nugatory by later redefinition.


=== Zope3/src/zope/interface/declarations.py 1.15 => 1.16 ===
--- Zope3/src/zope/interface/declarations.py:1.15	Sat Jun 14 08:32:07 2003
+++ Zope3/src/zope/interface/declarations.py	Mon Jun 30 12:32:46 2003
@@ -1376,28 +1376,6 @@
             stop = 1
             _setImplements(cls, implements)
 
-        result.append(implements)
-    else:
-        stop = 0
-
-    if not stop:
-        for b in cls.__bases__:
-            _gatherSpecs(b, result)
-
-    return result
-
-def _gatherSpecs(cls, result):
-    implements = _getImplements(cls)
-    if implements is not None:
-        try:
-            stop = implements.only
-        except AttributeError:
-            # Must be an old-style interface spec
-            implements = ImplementsOnlySpecification(
-                _flattenSpecs([implements], []))
-            stop = 1
-            _setImplements(cls, implements)
-
         if stop:
             result.append(implements)
             return result




More information about the Zodb-checkins mailing list