Make webbrowser module unicode friendly in Python 2 (#1159)

* Make webbrowser module unicode friendly in Python 2

* CR changes
This commit is contained in:
David Euresti
2017-04-13 20:15:37 -07:00
committed by Jelle Zijlstra
parent 03119a237d
commit 5ba1a01216

View File

@@ -3,34 +3,34 @@
# NOTE: This dynamically typed stub was automatically generated by stubgen.
import sys
from typing import Any, Optional, Callable, List
from typing import Any, Optional, Callable, List, Text, Union, Sequence
class Error(Exception): ...
def register(name: str, klass: Optional[Callable[[], BaseBrowser]], instance: BaseBrowser=..., update_tryorder: int=...) -> None: ...
def get(using: str=...) -> BaseBrowser: ...
def open(url: str, new: int=..., autoraise: bool=...) -> bool: ...
def open_new(url: str) -> bool: ...
def open_new_tab(url: str) -> bool: ...
def register(name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: BaseBrowser = ..., update_tryorder: int = ...) -> None: ...
def get(using: Optional[Text] = ...) -> BaseBrowser: ...
def open(url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
def open_new(url: Text) -> bool: ...
def open_new_tab(url: Text) -> bool: ...
class BaseBrowser:
args = ... # type: List[str]
name = ... # type: str
basename = ... # type: str
def __init__(self, name: str=...) -> None: ...
def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...
def open_new(self, url: str) -> bool: ...
def open_new_tab(self, url: str) -> bool: ...
def __init__(self, name: Text = ...) -> None: ...
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
def open_new(self, url: Text) -> bool: ...
def open_new_tab(self, url: Text) -> bool: ...
class GenericBrowser(BaseBrowser):
args = ... # type: List[str]
name = ... # type: str
basename = ... # type: str
def __init__(self, name: str) -> None: ...
def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...
def __init__(self, name: Union[Text, Sequence[Text]]) -> None: ...
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
class BackgroundBrowser(GenericBrowser):
def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
class UnixBrowser(BaseBrowser):
raise_opts = ... # type: List[str]
@@ -40,7 +40,7 @@ class UnixBrowser(BaseBrowser):
remote_action = ... # type: str
remote_action_newwin = ... # type: str
remote_action_newtab = ... # type: str
def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
class Mozilla(UnixBrowser):
raise_opts = ... # type: List[str]
@@ -82,19 +82,19 @@ class Elinks(UnixBrowser):
redirect_stdout = ... # type: bool
class Konqueror(BaseBrowser):
def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
class Grail(BaseBrowser):
def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
class WindowsDefault(BaseBrowser):
def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
class MacOSX(BaseBrowser):
name = ... # type: str
def __init__(self, name: str) -> None: ...
def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...
def __init__(self, name: Text) -> None: ...
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
class MacOSXOSAScript(BaseBrowser):
def __init__(self, name: str) -> None: ...
def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...
def __init__(self, name: Text) -> None: ...
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...