Changeset 2679

Show
Ignore:
Timestamp:
03/26/17 04:55:01 (1 month ago)
Author:
jwoithe
Message:

matrixmixer: simplify the generation of colour keys. This was included in Xavier Forestier's Nov 2016 patch set as part of his Qt5/Python3 patchsets. The suggested form may be slightly more efficient and it works under Qt4/Python2 so it seems fine to apply.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py

    r2670 r2679  
    7474    def getColor(self, n): 
    7575        #print "ColorForNumber.getColor( %g )" % (n) 
    76         keys = self.colors.keys() 
    77         keys.sort() 
     76        keys = sorted(self.colors.keys()) 
    7877        low = keys[-1] 
    7978        high = keys[-1]