]> git.cworth.org Git - apitrace/blobdiff - specs/stdapi.py
Handle variations of LockRect.
[apitrace] / specs / stdapi.py
index ff7508b7021257e4c57f6edd6660bd33e35ec6fc..57e9aa6eb1fcacda7aa77e976b6f1c06dbb9334c 100644 (file)
@@ -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):