Module Expr Str Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam defaults body Print NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Str handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Str ExceptHandler body Return NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Num Index Num If CompareIn Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad BinOpMod Str NameLoad Return NameLoad orelse Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad handlers ExceptHandler body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body TryExcept body Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr orelse If CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num Str body TryExcept body Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr decorator_list If CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num Str body Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad Str Return NameLoad Expr Call NameLoad Str Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num
N/A N/A Wrapper for webbrowser library, to invoke the http handler on win32. N/A __author__ tstromberg@google.com (Thomas Stromberg) N/A os.path N/A subprocess N/A sys N/A traceback N/A webbrowser N/A util output N/A N/A string N/A N/A N/A string N/A create_win32_http_cmd N/A N/A url N/A N/A N/A Create a command-line tuple to launch a web browser for a given URL.

  Args:
    url: string

  Returns:
    tuple of: (executable, arg1, arg2, ...)

  At the moment, this ignores all default arguments to the browser.
  TODO(tstromberg): Properly parse the command-line arguments.
   N/A browser_type None N/A N/A N/A key N/A N/A _winreg OpenKey N/A _winreg HKEY_CURRENT_USER Software\Classes\http\shell\open\command N/A browser_type user N/A N/A N/A WindowsError N/A N/A key N/A N/A _winreg OpenKey N/A _winreg HKEY_LOCAL_MACHINE Software\Classes\http\shell\open\command N/A browser_type machine N/A N/A N/A False N/A cmd N/A N/A N/A _winreg EnumValue key 0 N/A 1 N/A N/A " cmd N/A N/A executable N/A N/A N/A cmd split " N/A 1 N/A N/A executable N/A N/A N/A cmd split N/A 0 N/A N/A N/A N/A N/A os path exists executable N/A N/A N/A output N/A $ Default HTTP browser does not exist: %s executable N/A False N/A N/A N/A output N/A $ %s HTTP handler: %s N/A browser_type executable N/A N/A executable url N/A open N/A N/A url N/A N/A N/A Opens a URL, overriding the normal webbrowser.open methods for sanity. N/A N/A N/A N/A N/A webbrowser open url new 1 autoraise True N/A N/A N/A N/A N/A output N/A Failed to open: [%s]: %s N/A url N/A N/A util GetLastExceptionString N/A N/A N/A N/A os path exists /usr/bin/open N/A N/A N/A N/A N/A output N/A trying open: %s url N/A p N/A N/A subprocess Popen N/A open url N/A N/A N/A p wait N/A N/A N/A N/A N/A output N/A open did not seem to work: %s N/A N/A util GetLastExceptionString N/A N/A N/A N/A N/A sys platform N/A 3 win N/A N/A N/A N/A N/A output N/A trying default Windows controller: %s url N/A controller N/A N/A webbrowser get windows-default N/A N/A N/A controller open_new url N/A N/A N/A N/A N/A output N/A WindowsController did not work: %s N/A N/A util GetLastExceptionString N/A N/A N/A N/A N/A sys platform N/A 3 win N/A N/A _winreg WindowsHttpDefault N/A N/A webbrowser BaseBrowser N/A N/A Provide an alternate open class for Windows user, using the http handler. open N/A N/A self url new autoraise N/A 0 1 N/A N/A command_args N/A create_win32_http_cmd url N/A N/A command_args N/A N/A N/A output $ Could not find HTTP handler N/A False N/A N/A output command_args: N/A N/A output command_args N/A old_pwd N/A N/A os getcwd N/A N/A N/A os chdir C:\ N/A N/A N/A _unused N/A N/A subprocess Popen command_args N/A N/A N/A os chdir old_pwd N/A True N/A N/A N/A N/A N/A N/A traceback print_exc N/A N/A output $ Failed to run HTTP handler, trying next browser. N/A N/A N/A os chdir old_pwd N/A False N/A N/A N/A N/A N/A webbrowser register windows-http WindowsHttpDefault update_tryorder -1