def iter_attributes(self, tag=None):
    ' Yield all attributes (limit to |tag| if specified).\n        '
    for attribute in self._make_attributes():
        if ((tag is None) or (attribute.tag == tag)):
            (yield attribute)
Yield all attributes (limit to |tag| if specified).
def iter_attributes(self, tag=None):
    ' \n        '
    for attribute in self._make_attributes():
        if ((tag is None) or (attribute.tag == tag)):
            (yield attribute)