Commit 162cf12
committed
cleaning up OptionalBackendPackage a tiny bit
- check for `if config is not None` before the try/except/pass adds
nothing, just makes it less readable
- much clearer to handle of the default value of the `install` variable
with the base class and not nested in a try/except of the
`get_config` method (and even duplicated outside of the try/except)
- the `force` attribute (only used for BackendAgg right now it seems)
should also have a more prominent default state in the base class
rather than in just one subclass1 parent f453421 commit 162cf12
1 file changed
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
458 | 460 | | |
459 | 461 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
468 | 467 | | |
469 | | - | |
| 468 | + | |
470 | 469 | | |
471 | 470 | | |
472 | 471 | | |
| |||
981 | 980 | | |
982 | 981 | | |
983 | 982 | | |
984 | | - | |
985 | 983 | | |
986 | 984 | | |
987 | 985 | | |
| |||
0 commit comments