diff options
author | Georg Brandl <georg@python.org> | 2006-06-09 20:43:48 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-06-09 20:43:48 +0000 |
commit | b2afe855e5d75a570707d6bf0e32206e4b7b1c4d (patch) | |
tree | b637a7e78de40cf155c471e702e9b465fcd0625d /Lib/idlelib/configHandler.py | |
parent | 3ebef999e60cc63baafcdcfa0fd05c063715a66c (diff) | |
download | cpython-git-b2afe855e5d75a570707d6bf0e32206e4b7b1c4d.tar.gz |
Make use of new str.startswith/endswith semantics.
Occurences in email and compiler were ignored due to backwards compat requirements.
Diffstat (limited to 'Lib/idlelib/configHandler.py')
-rw-r--r-- | Lib/idlelib/configHandler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py index 191a87c67a..dcd9321ad7 100644 --- a/Lib/idlelib/configHandler.py +++ b/Lib/idlelib/configHandler.py @@ -406,7 +406,7 @@ class IdleConf: names=extnNameList kbNameIndicies=[] for name in names: - if name.endswith('_bindings') or name.endswith('_cfgBindings'): + if name.endswith(('_bindings', '_cfgBindings')): kbNameIndicies.append(names.index(name)) kbNameIndicies.sort() kbNameIndicies.reverse() |