def write_attributes(self, attrs):
        """Write comma separated attribute values (if exists).
        """
        if attrs:
            self.write(
                ' [' + ','.join('%s="%s"' % kv for kv in attrs.items()) + ']'
            )
        else:  # pragma: nocover
            pass
def write_attributes ( self , attrs ) : if attrs : self . write ( ' [' + ',' . join ( '%s="%s"' % kv for kv in attrs . items ( ) ) + ']' ) else : pass
Write comma separated attribute values (if exists).