From 11e179501addc5b7a2f32d48f777c5a8adbe635d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 26 Jan 2016 12:49:32 -0800 Subject: [PATCH] Add six.moves.urllib stubs using imports. Based on https://github.com/python/typeshed/pull/21. --- third_party/2.7/six/moves/__init__.pyi | 5 +++ third_party/2.7/six/moves/urllib/__init__.pyi | 10 +++++ third_party/2.7/six/moves/urllib/error.pyi | 8 ++++ third_party/2.7/six/moves/urllib/parse.pyi | 30 ++++++++++++++ third_party/2.7/six/moves/urllib/request.pyi | 39 ++++++++++++++++++ third_party/2.7/six/moves/urllib/response.pyi | 9 ++++ .../2.7/six/moves/urllib/robotparser.pyi | 6 +++ third_party/2.7/six/moves/urllib_error.pyi | 10 +++++ third_party/2.7/six/moves/urllib_parse.pyi | 28 +++++++++++++ third_party/2.7/six/moves/urllib_request.pyi | 40 ++++++++++++++++++ third_party/2.7/six/moves/urllib_response.pyi | 11 +++++ .../2.7/six/moves/urllib_robotparser.pyi | 8 ++++ third_party/3/six/moves/__init__.pyi | 5 +++ third_party/3/six/moves/urllib/__init__.pyi | 10 +++++ third_party/3/six/moves/urllib/error.pyi | 8 ++++ third_party/3/six/moves/urllib/parse.pyi | 22 ++++++++++ third_party/3/six/moves/urllib/request.pyi | 40 ++++++++++++++++++ third_party/3/six/moves/urllib/response.pyi | 9 ++++ .../3/six/moves/urllib/robotparser.pyi | 6 +++ third_party/3/six/moves/urllib_error.pyi | 10 +++++ third_party/3/six/moves/urllib_parse.pyi | 20 +++++++++ third_party/3/six/moves/urllib_request.pyi | 41 +++++++++++++++++++ third_party/3/six/moves/urllib_response.pyi | 11 +++++ .../3/six/moves/urllib_robotparser.pyi | 8 ++++ 24 files changed, 394 insertions(+) create mode 100644 third_party/2.7/six/moves/urllib/__init__.pyi create mode 100644 third_party/2.7/six/moves/urllib/error.pyi create mode 100644 third_party/2.7/six/moves/urllib/parse.pyi create mode 100644 third_party/2.7/six/moves/urllib/request.pyi create mode 100644 third_party/2.7/six/moves/urllib/response.pyi create mode 100644 third_party/2.7/six/moves/urllib/robotparser.pyi create mode 100644 third_party/2.7/six/moves/urllib_error.pyi create mode 100644 third_party/2.7/six/moves/urllib_parse.pyi create mode 100644 third_party/2.7/six/moves/urllib_request.pyi create mode 100644 third_party/2.7/six/moves/urllib_response.pyi create mode 100644 third_party/2.7/six/moves/urllib_robotparser.pyi create mode 100644 third_party/3/six/moves/urllib/__init__.pyi create mode 100644 third_party/3/six/moves/urllib/error.pyi create mode 100644 third_party/3/six/moves/urllib/parse.pyi create mode 100644 third_party/3/six/moves/urllib/request.pyi create mode 100644 third_party/3/six/moves/urllib/response.pyi create mode 100644 third_party/3/six/moves/urllib/robotparser.pyi create mode 100644 third_party/3/six/moves/urllib_error.pyi create mode 100644 third_party/3/six/moves/urllib_parse.pyi create mode 100644 third_party/3/six/moves/urllib_request.pyi create mode 100644 third_party/3/six/moves/urllib_response.pyi create mode 100644 third_party/3/six/moves/urllib_robotparser.pyi diff --git a/third_party/2.7/six/moves/__init__.pyi b/third_party/2.7/six/moves/__init__.pyi index 0543fb24e..aef863dec 100644 --- a/third_party/2.7/six/moves/__init__.pyi +++ b/third_party/2.7/six/moves/__init__.pyi @@ -20,3 +20,8 @@ from __builtin__ import xrange as xrange from itertools import izip as zip from itertools import izip_longest as zip_longest import six.moves.cPickle as cPickle + +import six.moves.urllib_parse as urllib_parse +import six.moves.urllib_error as urllib_error +import six.moves.urllib as urllib +import six.moves.urllib_robotparser as urllib_robotparser diff --git a/third_party/2.7/six/moves/urllib/__init__.pyi b/third_party/2.7/six/moves/urllib/__init__.pyi new file mode 100644 index 000000000..71523cda7 --- /dev/null +++ b/third_party/2.7/six/moves/urllib/__init__.pyi @@ -0,0 +1,10 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib (Python 2.7) + +import six.moves.urllib.error as error +import six.moves.urllib.parse as parse +import six.moves.urllib.request as request +import six.moves.urllib.response as response +import six.moves.urllib.robotparser as robotparser diff --git a/third_party/2.7/six/moves/urllib/error.pyi b/third_party/2.7/six/moves/urllib/error.pyi new file mode 100644 index 000000000..05eda84a7 --- /dev/null +++ b/third_party/2.7/six/moves/urllib/error.pyi @@ -0,0 +1,8 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.error (Python 2.7) + +from urllib2 import URLError as URLError +from urllib2 import HTTPError as HTTPError +from urllib import ContentTooShortError as ContentTooShortError diff --git a/third_party/2.7/six/moves/urllib/parse.pyi b/third_party/2.7/six/moves/urllib/parse.pyi new file mode 100644 index 000000000..25351fb86 --- /dev/null +++ b/third_party/2.7/six/moves/urllib/parse.pyi @@ -0,0 +1,30 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.parse (Python 2.7) + +from six.moves.urllib_parse import ( + ParseResult as ParseResult, + SplitResult as SplitResult, + parse_qs as parse_qs, + parse_qsl as parse_qsl, + urldefrag as urldefrag, + urljoin as urljoin, + urlparse as urlparse, + urlsplit as urlsplit, + urlunparse as urlunparse, + urlunsplit as urlunsplit, + quote as quote, + quote_plus as quote_plus, + unquote as unquote, + unquote_plus as unquote_plus, + urlencode as urlencode, + splitquery as splitquery, + splittag as splittag, + splituser as splituser, + uses_fragment as uses_fragment, + uses_netloc as uses_netloc, + uses_params as uses_params, + uses_query as uses_query, + uses_relative as uses_relative, +) diff --git a/third_party/2.7/six/moves/urllib/request.pyi b/third_party/2.7/six/moves/urllib/request.pyi new file mode 100644 index 000000000..8c8a8b7df --- /dev/null +++ b/third_party/2.7/six/moves/urllib/request.pyi @@ -0,0 +1,39 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.request (Python 2.7) + +from urllib2 import urlopen as urlopen +from urllib2 import install_opener as install_opener +from urllib2 import build_opener as build_opener +from urllib import pathname2url as pathname2url +from urllib import url2pathname as url2pathname +from urllib import getproxies as getproxies +from urllib2 import Request as Request +from urllib2 import OpenerDirector as OpenerDirector +from urllib2 import HTTPDefaultErrorHandler as HTTPDefaultErrorHandler +from urllib2 import HTTPRedirectHandler as HTTPRedirectHandler +from urllib2 import HTTPCookieProcessor as HTTPCookieProcessor +from urllib2 import ProxyHandler as ProxyHandler +from urllib2 import BaseHandler as BaseHandler +from urllib2 import HTTPPasswordMgr as HTTPPasswordMgr +from urllib2 import HTTPPasswordMgrWithDefaultRealm as HTTPPasswordMgrWithDefaultRealm +from urllib2 import AbstractBasicAuthHandler as AbstractBasicAuthHandler +from urllib2 import HTTPBasicAuthHandler as HTTPBasicAuthHandler +from urllib2 import ProxyBasicAuthHandler as ProxyBasicAuthHandler +from urllib2 import AbstractDigestAuthHandler as AbstractDigestAuthHandler +from urllib2 import HTTPDigestAuthHandler as HTTPDigestAuthHandler +from urllib2 import ProxyDigestAuthHandler as ProxyDigestAuthHandler +from urllib2 import HTTPHandler as HTTPHandler +from urllib2 import HTTPSHandler as HTTPSHandler +from urllib2 import FileHandler as FileHandler +from urllib2 import FTPHandler as FTPHandler +from urllib2 import CacheFTPHandler as CacheFTPHandler +from urllib2 import UnknownHandler as UnknownHandler +from urllib2 import HTTPErrorProcessor as HTTPErrorProcessor +from urllib import urlretrieve as urlretrieve +from urllib import urlcleanup as urlcleanup +from urllib import URLopener as URLopener +from urllib import FancyURLopener as FancyURLopener +# Don't have type stubs for proxy_bypass in stdlib urllib +# from urllib import proxy_bypass as proxy_bypass diff --git a/third_party/2.7/six/moves/urllib/response.pyi b/third_party/2.7/six/moves/urllib/response.pyi new file mode 100644 index 000000000..d778514d0 --- /dev/null +++ b/third_party/2.7/six/moves/urllib/response.pyi @@ -0,0 +1,9 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.response (Python 2.7) + +from urllib import addbase as addbase +from urllib import addclosehook as addclosehook +from urllib import addinfo as addinfo +from urllib import addinfourl as addinfourl diff --git a/third_party/2.7/six/moves/urllib/robotparser.pyi b/third_party/2.7/six/moves/urllib/robotparser.pyi new file mode 100644 index 000000000..3b337585f --- /dev/null +++ b/third_party/2.7/six/moves/urllib/robotparser.pyi @@ -0,0 +1,6 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.robotparser (Python 2.7) + +from robotparser import RobotFileParser as RobotFileParser diff --git a/third_party/2.7/six/moves/urllib_error.pyi b/third_party/2.7/six/moves/urllib_error.pyi new file mode 100644 index 000000000..4872659b0 --- /dev/null +++ b/third_party/2.7/six/moves/urllib_error.pyi @@ -0,0 +1,10 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_error (Python 2.7) + +from six.moves.urllib.error import ( + URLError as URLError, + HTTPError as HTTPError, + ContentTooShortError as ContentTooShortError, +) diff --git a/third_party/2.7/six/moves/urllib_parse.pyi b/third_party/2.7/six/moves/urllib_parse.pyi new file mode 100644 index 000000000..2416b9642 --- /dev/null +++ b/third_party/2.7/six/moves/urllib_parse.pyi @@ -0,0 +1,28 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_parse (Python 2.7) + +from urlparse import ParseResult as ParseResult +from urlparse import SplitResult as SplitResult +from urlparse import parse_qs as parse_qs +from urlparse import parse_qsl as parse_qsl +from urlparse import urldefrag as urldefrag +from urlparse import urljoin as urljoin +from urlparse import urlparse as urlparse +from urlparse import urlsplit as urlsplit +from urlparse import urlunparse as urlunparse +from urlparse import urlunsplit as urlunsplit +from urllib import quote as quote +from urllib import quote_plus as quote_plus +from urllib import unquote as unquote +from urllib import unquote_plus as unquote_plus +from urllib import urlencode as urlencode +from urllib import splitquery as splitquery +from urllib import splittag as splittag +from urllib import splituser as splituser +from urlparse import uses_fragment as uses_fragment +from urlparse import uses_netloc as uses_netloc +from urlparse import uses_params as uses_params +from urlparse import uses_query as uses_query +from urlparse import uses_relative as uses_relative diff --git a/third_party/2.7/six/moves/urllib_request.pyi b/third_party/2.7/six/moves/urllib_request.pyi new file mode 100644 index 000000000..832055a07 --- /dev/null +++ b/third_party/2.7/six/moves/urllib_request.pyi @@ -0,0 +1,40 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_request (Python 2.7) + +from six.moves.urllib.request import ( + urlopen as urlopen, + install_opener as install_opener, + build_opener as build_opener, + pathname2url as pathname2url, + url2pathname as url2pathname, + getproxies as getproxies, + Request as Request, + OpenerDirector as OpenerDirector, + HTTPDefaultErrorHandler as HTTPDefaultErrorHandler, + HTTPRedirectHandler as HTTPRedirectHandler, + HTTPCookieProcessor as HTTPCookieProcessor, + ProxyHandler as ProxyHandler, + BaseHandler as BaseHandler, + HTTPPasswordMgr as HTTPPasswordMgr, + HTTPPasswordMgrWithDefaultRealm as HTTPPasswordMgrWithDefaultRealm, + AbstractBasicAuthHandler as AbstractBasicAuthHandler, + HTTPBasicAuthHandler as HTTPBasicAuthHandler, + ProxyBasicAuthHandler as ProxyBasicAuthHandler, + AbstractDigestAuthHandler as AbstractDigestAuthHandler, + HTTPDigestAuthHandler as HTTPDigestAuthHandler, + ProxyDigestAuthHandler as ProxyDigestAuthHandler, + HTTPHandler as HTTPHandler, + HTTPSHandler as HTTPSHandler, + FileHandler as FileHandler, + FTPHandler as FTPHandler, + CacheFTPHandler as CacheFTPHandler, + UnknownHandler as UnknownHandler, + HTTPErrorProcessor as HTTPErrorProcessor, + urlretrieve as urlretrieve, + urlcleanup as urlcleanup, + URLopener as URLopener, + FancyURLopener as FancyURLopener, + proxy_bypass as proxy_bypass, +) diff --git a/third_party/2.7/six/moves/urllib_response.pyi b/third_party/2.7/six/moves/urllib_response.pyi new file mode 100644 index 000000000..ca0049255 --- /dev/null +++ b/third_party/2.7/six/moves/urllib_response.pyi @@ -0,0 +1,11 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_response (Python 2.7) + +from six.moves.urllib.response import ( + addbase as addbase, + addclosehook as addclosehook, + addinfo as addinfo, + addinfourl as addinfourl, +) diff --git a/third_party/2.7/six/moves/urllib_robotparser.pyi b/third_party/2.7/six/moves/urllib_robotparser.pyi new file mode 100644 index 000000000..d990bb554 --- /dev/null +++ b/third_party/2.7/six/moves/urllib_robotparser.pyi @@ -0,0 +1,8 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_robotparser (Python 2.7) + +from six.moves.urllib.robotparser import ( + RobotFileParser as RobotFileParser, +) diff --git a/third_party/3/six/moves/__init__.pyi b/third_party/3/six/moves/__init__.pyi index ee55856f1..00dedd754 100644 --- a/third_party/3/six/moves/__init__.pyi +++ b/third_party/3/six/moves/__init__.pyi @@ -23,3 +23,8 @@ from builtins import range as xrange from builtins import zip as zip from itertools import zip_longest as zip_longest import six.moves.cPickle as cPickle + +import six.moves.urllib_parse as urllib_parse +import six.moves.urllib_error as urllib_error +import six.moves.urllib as urllib +import six.moves.urllib_robotparser as urllib_robotparser diff --git a/third_party/3/six/moves/urllib/__init__.pyi b/third_party/3/six/moves/urllib/__init__.pyi new file mode 100644 index 000000000..298b0495e --- /dev/null +++ b/third_party/3/six/moves/urllib/__init__.pyi @@ -0,0 +1,10 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib (Python 3.2) + +import six.moves.urllib.error as error +import six.moves.urllib.parse as parse +import six.moves.urllib.request as request +import six.moves.urllib.response as response +import six.moves.urllib.robotparser as robotparser diff --git a/third_party/3/six/moves/urllib/error.pyi b/third_party/3/six/moves/urllib/error.pyi new file mode 100644 index 000000000..a45b0f71e --- /dev/null +++ b/third_party/3/six/moves/urllib/error.pyi @@ -0,0 +1,8 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.error (Python 3.2) + +from urllib.error import URLError as URLError +from urllib.error import HTTPError as HTTPError +from urllib.error import ContentTooShortError as ContentTooShortError diff --git a/third_party/3/six/moves/urllib/parse.pyi b/third_party/3/six/moves/urllib/parse.pyi new file mode 100644 index 000000000..c640af258 --- /dev/null +++ b/third_party/3/six/moves/urllib/parse.pyi @@ -0,0 +1,22 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.parse (Python 3.2) + +from six.moves.urllib_parse import ( + ParseResult as ParseResult, + SplitResult as SplitResult, + parse_qs as parse_qs, + parse_qsl as parse_qsl, + urldefrag as urldefrag, + urljoin as urljoin, + urlparse as urlparse, + urlsplit as urlsplit, + urlunparse as urlunparse, + urlunsplit as urlunsplit, + quote as quote, + quote_plus as quote_plus, + unquote as unquote, + unquote_plus as unquote_plus, + urlencode as urlencode, +) diff --git a/third_party/3/six/moves/urllib/request.pyi b/third_party/3/six/moves/urllib/request.pyi new file mode 100644 index 000000000..b15ced7ea --- /dev/null +++ b/third_party/3/six/moves/urllib/request.pyi @@ -0,0 +1,40 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.request (Python 3.2) + +from urllib.request import BaseHandler as BaseHandler +from urllib.request import HTTPRedirectHandler as HTTPRedirectHandler +from urllib.request import OpenerDirector as OpenerDirector + +from urllib.request import install_opener as install_opener +from urllib.request import build_opener as build_opener + +# from urllib.request import urlopen as urlopen +# from urllib.request import pathname2url as pathname2url +# from urllib.request import url2pathname as url2pathname +# from urllib.request import getproxies as getproxies +# from urllib.request import Request as Request +# from urllib.request import HTTPDefaultErrorHandler as HTTPDefaultErrorHandler +# from urllib.request import HTTPCookieProcessor as HTTPCookieProcessor +# from urllib.request import ProxyHandler as ProxyHandler +# from urllib.request import HTTPPasswordMgr as HTTPPasswordMgr +# from urllib.request import HTTPPasswordMgrWithDefaultRealm as HTTPPasswordMgrWithDefaultRealm +# from urllib.request import AbstractBasicAuthHandler as AbstractBasicAuthHandler +# from urllib.request import HTTPBasicAuthHandler as HTTPBasicAuthHandler +# from urllib.request import ProxyBasicAuthHandler as ProxyBasicAuthHandler +# from urllib.request import AbstractDigestAuthHandler as AbstractDigestAuthHandler +# from urllib.request import HTTPDigestAuthHandler as HTTPDigestAuthHandler +# from urllib.request import ProxyDigestAuthHandler as ProxyDigestAuthHandler +# from urllib.request import HTTPHandler as HTTPHandler +# from urllib.request import HTTPSHandler as HTTPSHandler +# from urllib.request import FileHandler as FileHandler +# from urllib.request import FTPHandler as FTPHandler +# from urllib.request import CacheFTPHandler as CacheFTPHandler +# from urllib.request import UnknownHandler as UnknownHandler +# from urllib.request import HTTPErrorProcessor as HTTPErrorProcessor +# from urllib.request import urlretrieve as urlretrieve +# from urllib.request import urlcleanup as urlcleanup +# from urllib.request import URLopener as URLopener +# from urllib.request import FancyURLopener as FancyURLopener +# from urllib.request import proxy_bypass as proxy_bypass diff --git a/third_party/3/six/moves/urllib/response.pyi b/third_party/3/six/moves/urllib/response.pyi new file mode 100644 index 000000000..93ec5ce62 --- /dev/null +++ b/third_party/3/six/moves/urllib/response.pyi @@ -0,0 +1,9 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.response (Python 3.2) + +from urllib.response import addbase as addbase +from urllib.response import addclosehook as addclosehook +from urllib.response import addinfo as addinfo +from urllib.response import addinfourl as addinfourl diff --git a/third_party/3/six/moves/urllib/robotparser.pyi b/third_party/3/six/moves/urllib/robotparser.pyi new file mode 100644 index 000000000..669035523 --- /dev/null +++ b/third_party/3/six/moves/urllib/robotparser.pyi @@ -0,0 +1,6 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib.robotparser (Python 3.2) + +from urllib.robotparser import RobotFileParser as RobotFileParser diff --git a/third_party/3/six/moves/urllib_error.pyi b/third_party/3/six/moves/urllib_error.pyi new file mode 100644 index 000000000..136866442 --- /dev/null +++ b/third_party/3/six/moves/urllib_error.pyi @@ -0,0 +1,10 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_error (Python 3.2) + +from six.moves.urllib.error import ( + URLError as URLError, + HTTPError as HTTPError, + ContentTooShortError as ContentTooShortError, +) diff --git a/third_party/3/six/moves/urllib_parse.pyi b/third_party/3/six/moves/urllib_parse.pyi new file mode 100644 index 000000000..96f6207ef --- /dev/null +++ b/third_party/3/six/moves/urllib_parse.pyi @@ -0,0 +1,20 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_parse (Python 3.2) + +from urllib.parse import ParseResult as ParseResult +from urllib.parse import SplitResult as SplitResult +from urllib.parse import parse_qs as parse_qs +from urllib.parse import parse_qsl as parse_qsl +from urllib.parse import urldefrag as urldefrag +from urllib.parse import urljoin as urljoin +from urllib.parse import urlparse as urlparse +from urllib.parse import urlsplit as urlsplit +from urllib.parse import urlunparse as urlunparse +from urllib.parse import urlunsplit as urlunsplit +from urllib.parse import quote as quote +from urllib.parse import quote_plus as quote_plus +from urllib.parse import unquote as unquote +from urllib.parse import unquote_plus as unquote_plus +from urllib.parse import urlencode as urlencode diff --git a/third_party/3/six/moves/urllib_request.pyi b/third_party/3/six/moves/urllib_request.pyi new file mode 100644 index 000000000..168f63532 --- /dev/null +++ b/third_party/3/six/moves/urllib_request.pyi @@ -0,0 +1,41 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_request (Python 3.2) + +from six.moves.urllib.request import ( + install_opener as install_opener, + build_opener as build_opener, + BaseHandler as BaseHandler, + OpenerDirector as OpenerDirector, + HTTPRedirectHandler as HTTPRedirectHandler, + + # urlopen as urlopen, + # pathname2url as pathname2url, + # url2pathname as url2pathname, + # getproxies as getproxies, + # Request as Request, + # HTTPDefaultErrorHandler as HTTPDefaultErrorHandler, + # HTTPCookieProcessor as HTTPCookieProcessor, + # ProxyHandler as ProxyHandler, + # HTTPPasswordMgr as HTTPPasswordMgr, + # HTTPPasswordMgrWithDefaultRealm as HTTPPasswordMgrWithDefaultRealm, + # AbstractBasicAuthHandler as AbstractBasicAuthHandler, + # HTTPBasicAuthHandler as HTTPBasicAuthHandler, + # ProxyBasicAuthHandler as ProxyBasicAuthHandler, + # AbstractDigestAuthHandler as AbstractDigestAuthHandler, + # HTTPDigestAuthHandler as HTTPDigestAuthHandler, + # ProxyDigestAuthHandler as ProxyDigestAuthHandler, + # HTTPHandler as HTTPHandler, + # HTTPSHandler as HTTPSHandler, + # FileHandler as FileHandler, + # FTPHandler as FTPHandler, + # CacheFTPHandler as CacheFTPHandler, + # UnknownHandler as UnknownHandler, + # HTTPErrorProcessor as HTTPErrorProcessor, + # urlretrieve as urlretrieve, + # urlcleanup as urlcleanup, + # URLopener as URLopener, + # FancyURLopener as FancyURLopener, + # proxy_bypass as proxy_bypass, +) diff --git a/third_party/3/six/moves/urllib_response.pyi b/third_party/3/six/moves/urllib_response.pyi new file mode 100644 index 000000000..0a834a7f0 --- /dev/null +++ b/third_party/3/six/moves/urllib_response.pyi @@ -0,0 +1,11 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_response (Python 3.2) + +from six.moves.urllib.response import ( + addbase as addbase, + addclosehook as addclosehook, + addinfo as addinfo, + addinfourl as addinfourl, +) diff --git a/third_party/3/six/moves/urllib_robotparser.pyi b/third_party/3/six/moves/urllib_robotparser.pyi new file mode 100644 index 000000000..8b4ca73e4 --- /dev/null +++ b/third_party/3/six/moves/urllib_robotparser.pyi @@ -0,0 +1,8 @@ +# Generated by stubtool 0.1, DO NOT EDIT +# See https://github.com/o11c/stubtool +# +# Stubs for six.moves.urllib_robotparser (Python 3.2) + +from six.moves.urllib.robotparser import ( + RobotFileParser as RobotFileParser, +)