Changeset 2686

Show
Ignore:
Timestamp:
03/28/17 04:38:34 (6 months ago)
Author:
jwoithe
Message:

ffado-mixer: replace configuration key search with a construct which is compatible with both python2 and python3. Suggestion is from Xavier Forestier.

Files:

Legend:

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

    r2680 r2686  
    4949            if tmp != None: 
    5050                config[ tmp[0] ] = tmp[1] 
    51         if config.has_key("device_definitions")
     51        if "device_definitions" in config
    5252            for dev in config["device_definitions"]: 
    5353                self.addDevice( dev )