Commit 84cc167
committed
Fold _rgbacache into _imcache.
Both caches are used when converting images to rgba; the only difference
is that rgbacache was specifically used for PcolorImage (via
PcolorImage.make_image) whereas imcache covered the rest (via
_ImageBase._make_image). One can instead use a single attribute (also
avoiding to duplicate their invalidation).
Also update the comment, and a bit the implementation, on
`__getstate__`: a long time ago imcache was (probably?) a non-picklable
custom subclass; now it is picklable but it still makes sense not to
pickle it.1 parent 21b76ae commit 84cc167
1 file changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 263 | + | |
| 264 | + | |
267 | 265 | | |
268 | 266 | | |
269 | 267 | | |
| |||
304 | 302 | | |
305 | 303 | | |
306 | 304 | | |
307 | | - | |
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
| |||
710 | 707 | | |
711 | 708 | | |
712 | 709 | | |
713 | | - | |
714 | 710 | | |
715 | 711 | | |
716 | 712 | | |
| |||
1214 | 1210 | | |
1215 | 1211 | | |
1216 | 1212 | | |
1217 | | - | |
| 1213 | + | |
1218 | 1214 | | |
1219 | | - | |
1220 | | - | |
| 1215 | + | |
| 1216 | + | |
1221 | 1217 | | |
1222 | 1218 | | |
1223 | 1219 | | |
| |||
1294 | 1290 | | |
1295 | 1291 | | |
1296 | 1292 | | |
1297 | | - | |
| 1293 | + | |
1298 | 1294 | | |
1299 | 1295 | | |
1300 | 1296 | | |
| |||
0 commit comments