def build_attrs(self, base_attrs, extra_attrs=None):
attrs = base_attrs.copy()<EOL>if extra_attrs is not None:<EOL><INDENT>attrs.update(extra_attrs)<EOL><DEDENT>return attrs<EOL>
Build an attribute dictionary.