fix 'TypeError: lxml.etree._Attrib is not a mapping' on pypy3

https://github.com/fonttools/fonttools/actions/runs/5070601982/jobs/9105864056#step:5:3610
This commit is contained in:
Cosimo Lupo 2023-05-24 16:39:26 +01:00
parent 31cb8c0a96
commit 20319e02f9
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8

View File

@ -77,7 +77,7 @@ def iter_referenced_ids(tree: etree.Element) -> Iterator[str]:
attrs = el.attrib
if "style" in attrs:
attrs = {**attrs, **parse_css_declarations(el.attrib["style"])}
attrs = {**dict(attrs), **parse_css_declarations(el.attrib["style"])}
for attr in ("fill", "clip-path"):
if attr in attrs:
value = attrs[attr]