Commit 31a5d0d
committed
Remove some unnecessary getattrs.
Figures always have a canvas attached (even if it's just a
FigureCanvasBase), and canvases always have a "manager" attribute (which
may be None).
Canvases also always have a "toolbar" attribute (which also may be
None).
Altogether this allows avoiding a couple of getattrs.1 parent a76e037 commit 31a5d0d
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2660 | 2660 | | |
2661 | 2661 | | |
2662 | 2662 | | |
2663 | | - | |
2664 | | - | |
2665 | | - | |
2666 | | - | |
2667 | | - | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
2668 | 2666 | | |
2669 | 2667 | | |
2670 | 2668 | | |
| |||
2759 | 2757 | | |
2760 | 2758 | | |
2761 | 2759 | | |
2762 | | - | |
| 2760 | + | |
2763 | 2761 | | |
2764 | 2762 | | |
2765 | 2763 | | |
| |||
2854 | 2852 | | |
2855 | 2853 | | |
2856 | 2854 | | |
2857 | | - | |
2858 | | - | |
| 2855 | + | |
2859 | 2856 | | |
2860 | 2857 | | |
2861 | 2858 | | |
| |||
0 commit comments