We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ed126 commit 532c847Copy full SHA for 532c847
src/bitmessageqt/account.py
@@ -22,10 +22,8 @@ def getSortedAccounts():
22
"""Get a sorted list of address config sections"""
23
configSections = BMConfigParser().addresses()
24
configSections.sort(
25
- cmp=lambda x, y: cmp(
26
- BMConfigParser().get(x, 'label').decode('utf-8').lower(),
27
- BMConfigParser().get(y, 'label').decode('utf-8').lower())
28
- )
+ key=lambda item:
+ BMConfigParser().get(item, 'label').decode('utf-8').lower())
29
return configSections
30
31
0 commit comments