already a class tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 13 May 2009 15:06:02 +0200
branchtls-sprint
changeset 1784 f0fb914e57db
parent 1783 b81f9761907c
child 1785 01245e2a777d
already a class
selectors.py
--- a/selectors.py	Wed May 13 15:05:38 2009 +0200
+++ b/selectors.py	Wed May 13 15:06:02 2009 +0200
@@ -124,8 +124,7 @@
             return len(parents) + 4
         if iface is parents[-1]: # Any
             return 1
-        for index, etype in enumerate(reversed(parents[:-1])):
-            basecls = vreg.etype_class(etype)
+        for index, basecls in enumerate(reversed(parents[:-1])):
             if iface is basecls:
                 return index + 3
         return 0