Commit 4818c27
committed
Some unrelated cleanups.
1) Simplify a bit the pickling setup for SubplotBase subclasses
(basically, there was one layer of callable that was unnecessary).
2) Remove some commented out code that doesn't seem to achieve much, and
has likely been commented out for years now.
3) No need to define `__internal_repr__` in mathtext and have `__repr__`
call it; directly defining `__repr__` is sufficient.
4) The current definition of `Patch.__str__` has `str(Patch())` return
`"Patch'>"`, which is clearly worse than even the default repr. I
guess the intent was just to return `"Patch"`, but that's not the
point of this PR; that can go in another PR if desired.1 parent fb98a9a commit 4818c27
3 files changed
Lines changed: 14 additions & 59 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
102 | 97 | | |
103 | 98 | | |
104 | 99 | | |
| |||
213 | 208 | | |
214 | 209 | | |
215 | 210 | | |
216 | | - | |
| 211 | + | |
217 | 212 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 213 | + | |
| 214 | + | |
221 | 215 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 216 | + | |
| 217 | + | |
229 | 218 | | |
230 | 219 | | |
231 | 220 | | |
232 | 221 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | 1363 | | |
1367 | 1364 | | |
1368 | 1365 | | |
| |||
1449 | 1446 | | |
1450 | 1447 | | |
1451 | 1448 | | |
1452 | | - | |
| 1449 | + | |
1453 | 1450 | | |
1454 | 1451 | | |
1455 | 1452 | | |
| |||
1547 | 1544 | | |
1548 | 1545 | | |
1549 | 1546 | | |
1550 | | - | |
| 1547 | + | |
1551 | 1548 | | |
1552 | 1549 | | |
1553 | 1550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
0 commit comments