diff --git a/stdlib/3/webbrowser.pyi b/stdlib/2and3/webbrowser.pyi similarity index 91% rename from stdlib/3/webbrowser.pyi rename to stdlib/2and3/webbrowser.pyi index 0faa40c62..95b340e2b 100644 --- a/stdlib/3/webbrowser.pyi +++ b/stdlib/2and3/webbrowser.pyi @@ -2,6 +2,7 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. +import sys from typing import Any, Optional, Callable, List class Error(Exception): ... @@ -56,12 +57,13 @@ class Galeon(UnixBrowser): remote_action_newwin = ... # type: str background = ... # type: bool -class Chrome(UnixBrowser): - remote_args = ... # type: List[str] - remote_action = ... # type: str - remote_action_newwin = ... # type: str - remote_action_newtab = ... # type: str - background = ... # type: bool +if sys.version_info[:2] == (2, 7) or sys.version_info >= (3, 3): + class Chrome(UnixBrowser): + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + background = ... # type: bool class Opera(UnixBrowser): raise_opts = ... # type: List[str]