Commit 840802e5 authored by Michel Pelletier's avatar Michel Pelletier

missing some tiget thingy

parent 05bd66c4
from iclass import Interface, Class, ClassType, Base, assertTypeImplements from iclass import Interface, Class, ClassType, Base, assertTypeImplements, _typeImplements #uuh..
from types import FunctionType from types import FunctionType
def impliedInterface(klass, __name__=None, __doc__=None): def impliedInterface(klass, __name__=None, __doc__=None):
...@@ -20,7 +20,7 @@ def _ii(klass, items): ...@@ -20,7 +20,7 @@ def _ii(klass, items):
for b in klass.__bases__: _ii(b, items) for b in klass.__bases__: _ii(b, items)
return items return items
def objectImplements(object): def objectImplements(object, tiget=_typeImplements.get):
"""Return the interfaces implemented by the object """Return the interfaces implemented by the object
""" """
r=[] r=[]
...@@ -43,7 +43,7 @@ def objectImplements(object): ...@@ -43,7 +43,7 @@ def objectImplements(object):
return r return r
def instancesOfObjectImplements(klass): def instancesOfObjectImplements(klass, tiget=_typeImplements.get):
"""Return the interfaces that instanced implement (by default) """Return the interfaces that instanced implement (by default)
""" """
r=[] r=[]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment