def is_link_inline(cls, tag, attribute):
        '''Return whether the link is likely to be inline object.'''
        if tag in cls.TAG_ATTRIBUTES \
           and attribute in cls.TAG_ATTRIBUTES[tag]:
            attr_flags = cls.TAG_ATTRIBUTES[tag][attribute]
            return attr_flags & cls.ATTR_INLINE

        return attribute != 'href'
def is_link_inline ( cls , tag , attribute ) : if tag in cls . TAG_ATTRIBUTES and attribute in cls . TAG_ATTRIBUTES [ tag ] : attr_flags = cls . TAG_ATTRIBUTES [ tag ] [ attribute ] return attr_flags & cls . ATTR_INLINE return attribute != 'href'
Return whether the link is likely to be inline object.