Commit 10c05ff
committed
Inline or simplify FooFormatter.pprint_val.
This avoids confusion between the three implementations
(OldScalarFormatter, ScalarFormatter, and LogFormatter).
OldScalarFormatter._pprint_val and ScalarFormatter._pprint_val are not
used elsewhere and can be inlined.
LogFormatter._pprint_val is also used by LogFormatterExponent and must
be kept (even though it looks likely that LogFormatterExponent can also
be simplified , e.g. the test
`abs(math.log(x) / math.log(self._base)) > 10000`
is basically never True for any realistic case -- but that'll be for
another time).1 parent d72f069 commit 10c05ff
1 file changed
Lines changed: 32 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
436 | 439 | | |
437 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
438 | 455 | | |
439 | 456 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
| 457 | + | |
444 | 458 | | |
445 | 459 | | |
446 | 460 | | |
| |||
556 | 570 | | |
557 | 571 | | |
558 | 572 | | |
559 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
560 | 580 | | |
561 | 581 | | |
562 | 582 | | |
| |||
768 | 788 | | |
769 | 789 | | |
770 | 790 | | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
| 791 | + | |
775 | 792 | | |
776 | 793 | | |
777 | 794 | | |
| |||
1020 | 1037 | | |
1021 | 1038 | | |
1022 | 1039 | | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1036 | 1045 | | |
1037 | | - | |
1038 | 1046 | | |
1039 | 1047 | | |
1040 | 1048 | | |
| |||
0 commit comments