Consistently use '= ...' for optional parameters.

This commit is contained in:
Matthias Kramm
2015-11-09 13:55:00 -08:00
parent 375bf063b1
commit 94c9ce8fd0
278 changed files with 2085 additions and 2085 deletions

View File

@@ -5,8 +5,8 @@ from typing import Any, Mapping, Union, Tuple, Sequence, IO
def url2pathname(pathname: str) -> str: ...
def pathname2url(pathname: str) -> str: ...
def urlopen(url: str, data=None, proxies: Mapping[str, str] = None, context=None) -> IO[Any]: ...
def urlretrieve(url, filename=None, reporthook=None, data=None, context=None): ...
def urlopen(url: str, data=..., proxies: Mapping[str, str] = ..., context=...) -> IO[Any]: ...
def urlretrieve(url, filename=..., reporthook=..., data=..., context=...): ...
def urlcleanup() -> None: ...
class ContentTooShortError(IOError):
@@ -22,24 +22,24 @@ class URLopener:
addheaders = ... # type: Any
tempcache = ... # type: Any
ftpcache = ... # type: Any
def __init__(self, proxies: Mapping[str, str] = None, context=None, **x509) -> None: ...
def __init__(self, proxies: Mapping[str, str] = ..., context=..., **x509) -> None: ...
def __del__(self): ...
def close(self): ...
def cleanup(self): ...
def addheader(self, *args): ...
type = ... # type: Any
def open(self, fullurl: str, data=None): ...
def open_unknown(self, fullurl, data=None): ...
def open_unknown_proxy(self, proxy, fullurl, data=None): ...
def retrieve(self, url, filename=None, reporthook=None, data=None): ...
def open_http(self, url, data=None): ...
def http_error(self, url, fp, errcode, errmsg, headers, data=None): ...
def open(self, fullurl: str, data=...): ...
def open_unknown(self, fullurl, data=...): ...
def open_unknown_proxy(self, proxy, fullurl, data=...): ...
def retrieve(self, url, filename=..., reporthook=..., data=...): ...
def open_http(self, url, data=...): ...
def http_error(self, url, fp, errcode, errmsg, headers, data=...): ...
def http_error_default(self, url, fp, errcode, errmsg, headers): ...
def open_https(self, url, data=None): ...
def open_https(self, url, data=...): ...
def open_file(self, url): ...
def open_local_file(self, url): ...
def open_ftp(self, url): ...
def open_data(self, url, data=None): ...
def open_data(self, url, data=...): ...
class FancyURLopener(URLopener):
auth_cache = ... # type: Any
@@ -47,18 +47,18 @@ class FancyURLopener(URLopener):
maxtries = ... # type: Any
def __init__(self, *args, **kwargs) -> None: ...
def http_error_default(self, url, fp, errcode, errmsg, headers): ...
def http_error_302(self, url, fp, errcode, errmsg, headers, data=None): ...
def http_error_302(self, url, fp, errcode, errmsg, headers, data=...): ...
def redirect_internal(self, url, fp, errcode, errmsg, headers, data): ...
def http_error_301(self, url, fp, errcode, errmsg, headers, data=None): ...
def http_error_303(self, url, fp, errcode, errmsg, headers, data=None): ...
def http_error_307(self, url, fp, errcode, errmsg, headers, data=None): ...
def http_error_401(self, url, fp, errcode, errmsg, headers, data=None): ...
def http_error_407(self, url, fp, errcode, errmsg, headers, data=None): ...
def retry_proxy_http_basic_auth(self, url, realm, data=None): ...
def retry_proxy_https_basic_auth(self, url, realm, data=None): ...
def retry_http_basic_auth(self, url, realm, data=None): ...
def retry_https_basic_auth(self, url, realm, data=None): ...
def get_user_passwd(self, host, realm, clear_cache=0): ...
def http_error_301(self, url, fp, errcode, errmsg, headers, data=...): ...
def http_error_303(self, url, fp, errcode, errmsg, headers, data=...): ...
def http_error_307(self, url, fp, errcode, errmsg, headers, data=...): ...
def http_error_401(self, url, fp, errcode, errmsg, headers, data=...): ...
def http_error_407(self, url, fp, errcode, errmsg, headers, data=...): ...
def retry_proxy_http_basic_auth(self, url, realm, data=...): ...
def retry_proxy_https_basic_auth(self, url, realm, data=...): ...
def retry_http_basic_auth(self, url, realm, data=...): ...
def retry_https_basic_auth(self, url, realm, data=...): ...
def get_user_passwd(self, host, realm, clear_cache=...): ...
def prompt_user_passwd(self, host, realm): ...
class ftpwrapper:
@@ -70,7 +70,7 @@ class ftpwrapper:
timeout = ... # type: Any
refcount = ... # type: Any
keepalive = ... # type: Any
def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=True) -> None: ...
def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=...) -> None: ...
busy = ... # type: Any
ftp = ... # type: Any
def init(self): ...
@@ -106,7 +106,7 @@ class addinfourl(addbase):
headers = ... # type: Any
url = ... # type: Any
code = ... # type: Any
def __init__(self, fp, headers, url, code=None) -> None: ...
def __init__(self, fp, headers, url, code=...) -> None: ...
def info(self): ...
def getcode(self): ...
def geturl(self): ...
@@ -117,16 +117,16 @@ def splithost(url): ...
def splituser(host): ...
def splitpasswd(user): ...
def splitport(host): ...
def splitnport(host, defport=-1): ...
def splitnport(host, defport=...): ...
def splitquery(url): ...
def splittag(url): ...
def splitattr(url): ...
def splitvalue(attr): ...
def unquote(s: str) -> str: ...
def unquote_plus(s: str) -> str: ...
def quote(s: str, safe='') -> str: ...
def quote_plus(s: str, safe='') -> str: ...
def urlencode(query: Union[Sequence[Tuple[Any, Any]], Mapping[Any, Any]], doseq=0) -> str: ...
def quote(s: str, safe=...) -> str: ...
def quote_plus(s: str, safe=...) -> str: ...
def urlencode(query: Union[Sequence[Tuple[Any, Any]], Mapping[Any, Any]], doseq=...) -> str: ...
def getproxies() -> Mapping[str, str]: ... # type: Any