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:
parent
31cb8c0a96
commit
20319e02f9
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user