Commit 5c7ca17
committed
Move svg basename detection down to RendererSVG.
This means one fewer argument to track down the call stack (avoiding
passing it from print_svg to RendererSVG). Wrapping the file object
in a TextIOWrapper (as done in print_svg) forwards the `.name` to the
wrapper, so we're fine there.1 parent 8c764dc commit 5c7ca17
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
284 | 287 | | |
| 288 | + | |
| 289 | + | |
285 | 290 | | |
286 | 291 | | |
287 | 292 | | |
| |||
1311 | 1316 | | |
1312 | 1317 | | |
1313 | 1318 | | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | 1319 | | |
1318 | 1320 | | |
1319 | 1321 | | |
| |||
1336 | 1338 | | |
1337 | 1339 | | |
1338 | 1340 | | |
1339 | | - | |
| 1341 | + | |
1340 | 1342 | | |
1341 | 1343 | | |
1342 | 1344 | | |
| |||
0 commit comments