Commit 7798242
committed
Fix SVG histogram example.
`Element.getchildren` was removed in Python 3.9, but more importantly,
blindly picking the first subelement is completely broken since we added
metadata to SVG. Using XPath finds the `style` tag wherever it might be.1 parent 15c774e commit 7798242
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments