X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fstdapi.py;h=57e9aa6eb1fcacda7aa77e976b6f1c06dbb9334c;hb=d275d0ad4ca04f2c88962010d7857f5b6d433646;hp=ff7508b7021257e4c57f6edd6660bd33e35ec6fc;hpb=f9c5da243d6b96b259f410ae61bbe971e9d7d490;p=apitrace diff --git a/specs/stdapi.py b/specs/stdapi.py index ff7508b..57e9aa6 100644 --- a/specs/stdapi.py +++ b/specs/stdapi.py @@ -402,9 +402,9 @@ class Interface(Type): return visitor.visitInterface(self, *args, **kwargs) def getMethodByName(self, name): - for methods in self.methods: - if methods.name == name: - return methods + for method in self.iterMethods(): + if method.name == name: + return method return None def iterMethods(self):