def assign_attrs(self, elem, attrs):
        for k, v in get_attrs(attrs):
            if k == '.':
                # add to class
                cls = elem.get('class')
                if cls:
                    elem.set('class', '%s %s' % (cls, v))
                else:
                    elem.set('class', v)
            else:
                # assing attr k with v
                elem.set(k, v)
Processes hooks of the specified type.
dataset/ETHPy150Open JT5D/Alfred-Popclip-Sublime/PopClip 2/PopClippins-master/source/mdtohtml/markdown/extensions/attr_list.py/AttrListTreeprocessor.assign_attrs--crossover with--dataset/ETHPy150Open pecan/pecan/pecan/core.py/PecanBase.handle_hooks