]> git.cworth.org Git - apitrace/blobdiff - specs/stdapi.py
Cleanup a bit more IID handling.
[apitrace] / specs / stdapi.py
index 2e4e5d86c2b89c52a798735e7040dd439c3aa0d3..60e287dadc1cfa816f1c49504be43769f4a95980 100644 (file)
@@ -409,6 +409,13 @@ class Interface(Type):
             yield method
         raise StopIteration
 
+    def iterBases(self):
+        iface = self
+        while iface is not None:
+            yield iface
+            iface = iface.base
+        raise StopIteration
+
     def iterBaseMethods(self):
         if self.base is not None:
             for iface, method in self.base.iterBaseMethods():
@@ -432,6 +439,7 @@ class Method(Function):
             s += ' const'
         return s
 
+
 def StdMethod(*args, **kwargs):
     kwargs.setdefault('call', '__stdcall')
     return Method(*args, **kwargs)