Commit cf1b35f
committed
gh-89520: IDLE - Replace ChainMap misuse with set union in config.py
ChainMap is designed for Mapping types, not lists. GetOptionList()
returns a list of strings, so passing these to ChainMap only worked
by accident via CPython's dict.fromkeys() in ChainMap.__iter__.
Replace with set() union, matching the pattern already used in
GetExtensionKeys. The actual user-over-default prioritization is
handled by GetOption(), not by the iteration order.1 parent eb194c3 commit cf1b35f
1 file changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
512 | | - | |
| 511 | + | |
513 | 512 | | |
514 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
515 | 516 | | |
516 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
517 | 520 | | |
518 | | - | |
519 | | - | |
| 521 | + | |
520 | 522 | | |
521 | 523 | | |
522 | 524 | | |
| |||
538 | 540 | | |
539 | 541 | | |
540 | 542 | | |
541 | | - | |
| 543 | + | |
542 | 544 | | |
543 | | - | |
| 545 | + | |
544 | 546 | | |
545 | 547 | | |
546 | 548 | | |
547 | | - | |
| 549 | + | |
548 | 550 | | |
549 | 551 | | |
550 | 552 | | |
551 | | - | |
552 | | - | |
| 553 | + | |
553 | 554 | | |
554 | 555 | | |
555 | 556 | | |
| |||
0 commit comments