Runnable with both Python3 and Python2, with both PyQt5 and PyQt4 by using Qt.py #2250
|
@ -22,10 +22,8 @@ def getSortedAccounts():
|
||||||
"""Get a sorted list of address config sections"""
|
"""Get a sorted list of address config sections"""
|
||||||
configSections = BMConfigParser().addresses()
|
configSections = BMConfigParser().addresses()
|
||||||
configSections.sort(
|
configSections.sort(
|
||||||
cmp=lambda x, y: cmp(
|
key=lambda item:
|
||||||
BMConfigParser().get(x, 'label').decode('utf-8').lower(),
|
BMConfigParser().get(item, 'label').decode('utf-8').lower())
|
||||||
BMConfigParser().get(y, 'label').decode('utf-8').lower())
|
|
||||||
)
|
|
||||||
return configSections
|
return configSections
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user