bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() - #12491
Conversation
This param was only used once and changed the return type.
'once' to 'twice'
|
Cheryl, what you you think of changing 'd' to 'hi', etc in the configdialog tests? I only changed the one test I edited. |
csabella
left a comment
There was a problem hiding this comment.
I really like this change. Some small things in other comments. I probably would have used f-strings instead of concatenation, but that's just a personal preference. :-)
So, |
|
Thanks for the fixes. While editing, I felt that 'd' was a nuisance because I kept mentally translating it each time I read it. I thought of 'high', 'page' or 'hp' instead of 'd'. 'hi' instead of 'high' was an experiment. For the 5 test classes, 'font', 'dent', 'high', 'keys', and 'gen' could work, but don't feel completely right, especially the adjectives. I think 'page' is what I was mentally substituting for 'd'. Given your comment, I would go with that and improve some of the test names to be more page specific. For example, change 'test_builtin_name' to 'test_builtin_theme' and 'test_builtin_keys' for the respective pages. For now, I changed 'hi' to 'page' and intend to leave that for the merge. |
|
I did not see the f-string comment until now. They would be fine and for anything other than |
|
Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
GH-12501 is a backport of this pull request to the 3.7 branch. |
This param was only used twice and changed the return type.
https://bugs.python.org/issue36396