def update_mappings(mappings, section, option):
 try:
  mapping = mappings[section][option]
 except KeyError:
  return
 value = config.get(section, option)
 mapping.set(value)

def update_mappings ( mappings , section , option ) : try : mapping = mappings [ section ] [ option ] except KeyError : return value = config . get ( section , option ) mapping . set ( value )
update global settings when qwebsettings changed .