mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-103737: IDLE - Remove unneeded .keys() for dict iteration (#110960)
Add comments where .keys() is needed. Leave debugger usages along because situation is unclear as indicated in expanded comment. Most testing is manual.
This commit is contained in:
parent
77dbd95609
commit
baefbb21d9
8 changed files with 28 additions and 26 deletions
|
@ -274,8 +274,8 @@ class IdleConfTest(unittest.TestCase):
|
|||
conf.CreateConfigHandlers()
|
||||
|
||||
# Check keys are equal
|
||||
self.assertCountEqual(conf.defaultCfg.keys(), conf.config_types)
|
||||
self.assertCountEqual(conf.userCfg.keys(), conf.config_types)
|
||||
self.assertCountEqual(conf.defaultCfg, conf.config_types)
|
||||
self.assertCountEqual(conf.userCfg, conf.config_types)
|
||||
|
||||
# Check conf parser are correct type
|
||||
for default_parser in conf.defaultCfg.values():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue