]> git.cworth.org Git - apitrace/blobdiff - specs/stdapi.py
Cleanup a bit more IID handling.
[apitrace] / specs / stdapi.py
index 67b9baabf78fddad140d170c57fa4030361365c2..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():