Commit df474242 authored by Guido van Rossum's avatar Guido van Rossum

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.
parent aafd0e49
from Exceptions import BrokenImplementation, DoesNotImplement, BrokenMethodImplementation
from Method import Method
import types
......@@ -29,16 +28,9 @@ def verify_class_implementation(iface, klass):
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment