diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-04-02 08:15:26 +0000 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-04-02 08:15:26 +0000 |
commit | a7f242fa2a005082b2067a558471178a2ed3fc93 (patch) | |
tree | 5ac4b05077fdcb26197dd74b28ddd888588b23ce /Lib/idlelib/configHandler.py | |
parent | d630c04ab1ab35e2ec6eeeaba9bdcb9f8e730e78 (diff) | |
download | cpython-git-a7f242fa2a005082b2067a558471178a2ed3fc93.tar.gz |
#7092: Drop the cmp argument.
Diffstat (limited to 'Lib/idlelib/configHandler.py')
-rw-r--r-- | Lib/idlelib/configHandler.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py index 8a047454c7..73487d56f3 100644 --- a/Lib/idlelib/configHandler.py +++ b/Lib/idlelib/configHandler.py @@ -654,17 +654,9 @@ class IdleConf: helpPath=value[1].strip() if menuItem and helpPath: #neither are empty strings helpSources.append( (menuItem,helpPath,option) ) - helpSources.sort(self.__helpsort) + helpSources.sort(key=lambda x: int(x[2])) return helpSources - def __helpsort(self, h1, h2): - if int(h1[2]) < int(h2[2]): - return -1 - elif int(h1[2]) > int(h2[2]): - return 1 - else: - return 0 - def GetAllExtraHelpSourcesList(self): """ Returns a list of tuples containing the details of all additional help |