parameters: (using=None)
docstring: Return a browser launcher instance appropriate for the environment.
docstring_summary: Return a browser launcher instance appropriate for the environment.
docstring_tokens: Return a browser launcher instance appropriate for the environment .
function: def get(using=None):
      """Return a browser launcher instance appropriate for the environment."""
      if using is not None:
          alternatives = [using]
      else:
          alternatives = _tryorder
      for browser in alternatives:
          if '%s' in browser:
              # User gave us a command line, split it into name and args
              browser = shlex.split(browser)
              if browser[-1] == '&':
                  return BackgroundBrowser(browser[:-1])
              else:
                  return GenericBrowser(browser)
          else:
              # User gave us a browser name or path.
              try:
                  command = _browsers[browser.lower()]
              except KeyError:
                  command = _synthesize(browser)
              if command[1] is not None:
                  return command[1]
              elif command[0] is not None:
                  return command[0]()
      raise Error("could not locate runnable browser")
function_tokens: def get ( using = None ) : if using is not None : alternatives = [ using ] else : alternatives = _tryorder for browser in alternatives : if '%s' in browser : # User gave us a command line, split it into name and args browser = shlex . split ( browser ) if browser [ - 1 ] == '&' : return BackgroundBrowser ( browser [ : - 1 ] ) else : return GenericBrowser ( browser ) else : # User gave us a browser name or path. try : command = _browsers [ browser . lower ( ) ] except KeyError : command = _synthesize ( browser ) if command [ 1 ] is not None : return command [ 1 ] elif command [ 0 ] is not None : return command [ 0 ] ( ) raise Error ( "could not locate runnable browser" )