def ui_open(*files):
 if files:
  osname = get_os_name()
  opener = _OPENER_BY_OS.get(osname)
  if opener:
   opener(files)
  else:
   raise OpenError((u'Open currently not supported for ' + osname))

def ui_open ( * files ) : if files : osname = get_os_name ( ) opener = _OPENER_BY_OS . get ( osname ) if opener : opener ( files ) else : raise OpenError ( ( u'Open currently not supported for ' + osname ) )
attempts to open the given files using the preferred desktop viewer or editor .