[Zope-Checkins] CVS: Packages/Interface - verify.py:1.4

Guido van Rossum guido@python.org
Tue, 21 May 2002 13:02:18 -0400


Update of /cvs-repository/Packages/Interface
In directory cvs.zope.org:/tmp/cvs-serv12110

Modified Files:
	verify.py 
Log Message:
Three's a charm: the right way to skip the rest of a loop body is
neither 'pass' (v 1.2) nor 'break' (v 1.3) but 'continue'.

Whitespace normalization.


=== Packages/Interface/verify.py 1.3 => 1.4 ===
 from Exceptions import BrokenImplementation, DoesNotImplement, BrokenMethodImplementation
 from Method import Method
 import types
@@ -29,16 +28,9 @@
         elif type(attr) is types.MethodType:
             meth = Method().fromMethod(attr, n)
         else:
-            break # must be an attribute...
-        
+            continue # must be an attribute...
+
         if d.getSignatureInfo() != meth.getSignatureInfo():
                 raise BrokenMethodImplementation(n)
-            
-    return 1
-
-
-
-
-
-
 
+    return 1