Commit af63f1c
committed
Remove unneeded cutout for webagg in show().
_Backend.show() is used to generate a backend_module.show() method (by
wrapping _Backend.mainloop() with some boilerplate), which is then what
pyplot.show() calls. Currently, it contains a cutout for webagg (wrt.
`block` support), but that's not really needed: the webagg backend
defines a show() function *directly*, without going through the mainloop
helper (this was the case even before the introduction of the _Backend
helper in 5141f80), and thus the `if get_backend() == "WebAgg"` check is
never reached when using webagg (try adding a print there and running
`MPLBACKEND=webagg python -c 'from pylab import *; plot(); show()'`).
So we can just remove the cutout.1 parent 037fcca commit af63f1c
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3507 | 3507 | | |
3508 | 3508 | | |
3509 | 3509 | | |
3510 | | - | |
3511 | | - | |
3512 | | - | |
3513 | | - | |
3514 | 3510 | | |
3515 | 3511 | | |
3516 | 3512 | | |
| |||
0 commit comments