Commit 3c9e398
committed
Simplify implementation of svg.image_inline.
RendererSVG._imaged is basically a single-entry dict (because
Renderer.basename never changes), so just replace it by a counter.
Also replace the assert by a proper exception, and only trigger it if
the user actually tries to save an image while the filesystem path is
unknown (otherwise, there's no problem).1 parent 146de7f commit 3c9e398
2 files changed
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 282 | + | |
| 283 | + | |
285 | 284 | | |
286 | 285 | | |
287 | 286 | | |
288 | | - | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| |||
830 | 828 | | |
831 | 829 | | |
832 | 830 | | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
| |||
0 commit comments