def __init__(cls, name, bases, classdict):
        """Finish initializing the HasTraits class.

        This sets the :attr:`this_class` attribute of each TraitType in the
        class dict to the newly created class ``cls``.
        """
        for k, v in classdict.iteritems():
            if isinstance(v, TraitType):
                v.this_class = cls
        super(MetaHasTraits, cls).__init__(name, bases, classdict)
def __init__ ( cls , name , bases , classdict ) : for k , v in classdict . iteritems ( ) : if isinstance ( v , TraitType ) : v . this_class = cls super ( MetaHasTraits , cls ) . __init__ ( name , bases , classdict )
Finish initializing the HasTraits class.

        This sets the :attr:`this_class` attribute of each TraitType in the
        class dict to the newly created class ``cls``.