def _process_old_opts(configs):
 if isinstance(configs, tuple):
  configs = [configs]
 return {label: options for (label, options) in configs}

def _process_old_opts ( configs ) : if isinstance ( configs , tuple ) : configs = [ configs ] return { label : options for ( label , options ) in configs }
convert old-style 2-tuple configs to dicts .