/dports/devel/pycharm-pro/pycharm-2020.2.3/plugins/python/helpers/typeshed/third_party/2/six/moves/urllib/ |
H A D | request.pyi | 2 from urllib2 import urlopen as urlopen 3 from urllib2 import install_opener as install_opener 4 from urllib2 import build_opener as build_opener 8 from urllib2 import Request as Request 9 from urllib2 import OpenerDirector as OpenerDirector 13 from urllib2 import ProxyHandler as ProxyHandler 14 from urllib2 import BaseHandler as BaseHandler 23 from urllib2 import HTTPHandler as HTTPHandler 24 from urllib2 import HTTPSHandler as HTTPSHandler 25 from urllib2 import FileHandler as FileHandler [all …]
|
/dports/devel/py-jedi/jedi-0.18.0/jedi/third_party/typeshed/third_party/2/six/moves/urllib/ |
H A D | request.pyi | 2 from urllib2 import urlopen as urlopen 3 from urllib2 import install_opener as install_opener 4 from urllib2 import build_opener as build_opener 8 from urllib2 import Request as Request 9 from urllib2 import OpenerDirector as OpenerDirector 13 from urllib2 import ProxyHandler as ProxyHandler 14 from urllib2 import BaseHandler as BaseHandler 23 from urllib2 import HTTPHandler as HTTPHandler 24 from urllib2 import HTTPSHandler as HTTPSHandler 25 from urllib2 import FileHandler as FileHandler [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/testing/mozbase/mozhttpd/tests/ |
H A D | api.py | 11 import urllib2 72 except urllib2.HTTPError as e: 87 opener = urllib2.build_opener(urllib2.HTTPHandler) 131 except urllib2.HTTPError as e: 147 except urllib2.HTTPError as e: 157 except urllib2.HTTPError as e: 165 opener = urllib2.build_opener(urllib2.HTTPHandler) 170 except urllib2.HTTPError: 200 urllib2.install_opener(None) 224 urllib2.install_opener(urllib2.build_opener(proxy_support)) [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/testing/mozbase/mozhttpd/tests/ |
H A D | api.py | 9 import urllib2 68 except urllib2.HTTPError as e: 83 opener = urllib2.build_opener(urllib2.HTTPHandler) 127 except urllib2.HTTPError as e: 143 except urllib2.HTTPError as e: 153 except urllib2.HTTPError as e: 161 opener = urllib2.build_opener(urllib2.HTTPHandler) 166 except urllib2.HTTPError: 196 urllib2.install_opener(None) 220 urllib2.install_opener(urllib2.build_opener(proxy_support)) [all …]
|
/dports/multimedia/tautulli/Tautulli-2.8.0/lib/cloudinary/poster/ |
H A D | streaminghttp.py | 33 from cloudinary.compat import NotConnected, httplib, urllib2 98 class StreamingHTTPRedirectHandler(urllib2.HTTPRedirectHandler): 134 return urllib2.Request( 143 class StreamingHTTPHandler(urllib2.HTTPHandler): 147 handler_order = urllib2.HTTPHandler.handler_order - 1 164 return urllib2.HTTPHandler.do_request_(self, req) 172 class StreamingHTTPSHandler(urllib2.HTTPSHandler): 176 handler_order = urllib2.HTTPSHandler.handler_order - 1 190 return urllib2.HTTPSHandler.do_request_(self, req) 205 opener = urllib2.build_opener(*get_handlers()) [all …]
|
/dports/devel/qtcreator/qt-creator-opensource-src-5.0.3/src/libs/qt-breakpad/poster/ |
H A D | streaminghttp.py | 48 import httplib, urllib2, socket 110 class StreamingHTTPRedirectHandler(urllib2.HTTPRedirectHandler): 146 return urllib2.Request(newurl, 153 class StreamingHTTPHandler(urllib2.HTTPHandler): 157 handler_order = urllib2.HTTPHandler.handler_order - 1 174 return urllib2.HTTPHandler.do_request_(self, req) 182 class StreamingHTTPSHandler(urllib2.HTTPSHandler): 186 handler_order = urllib2.HTTPSHandler.handler_order - 1 200 return urllib2.HTTPSHandler.do_request_(self, req) 212 opener = urllib2.build_opener(*handlers) [all …]
|
/dports/lang/python27/Python-2.7.18/Lib/test/ |
H A D | test_urllib2.py | 9 import urllib2 47 f = urllib2.urlopen(file_url) 64 urllib2.urlopen( 365 raise urllib2.URLError("blah") 480 from urllib2 import URLError 686 h = urllib2.FileHandler() 749 h = urllib2.FileHandler() 779 h = urllib2.AbstractHTTPHandler() 885 h = urllib2.HTTPErrorProcessor() 981 except urllib2.HTTPError: [all …]
|
H A D | test_urllib2_localnet.py | 4 import urllib2 303 ah = urllib2.HTTPBasicAuthHandler() 305 urllib2.install_opener(urllib2.build_opener(ah)) 308 except urllib2.HTTPError: 314 ah = urllib2.HTTPBasicAuthHandler() 317 urllib2.install_opener(urllib2.build_opener(ah)) 318 self.assertRaises(urllib2.HTTPError, urllib2.urlopen, self.server_url) 383 except urllib2.URLError: 448 urllib2.install_opener(opener) 509 except urllib2.URLError, f: [all …]
|
H A D | test_urllib2net.py | 6 import urllib2 37 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 115 None, urllib2.URLError), 166 req = urllib2.Request(urlwith_frag) 167 res = urllib2.urlopen(req) 173 opener = urllib2.build_opener() 185 opener = urllib2.build_opener() 186 request = urllib2.Request(url) 202 req = urllib2.urlopen(URL) 230 except urllib2.URLError as err: [all …]
|
/dports/lang/python-legacy/Python-2.7.18/Lib/test/ |
H A D | test_urllib2.py | 9 import urllib2 47 f = urllib2.urlopen(file_url) 64 urllib2.urlopen( 365 raise urllib2.URLError("blah") 480 from urllib2 import URLError 686 h = urllib2.FileHandler() 749 h = urllib2.FileHandler() 779 h = urllib2.AbstractHTTPHandler() 885 h = urllib2.HTTPErrorProcessor() 981 except urllib2.HTTPError: [all …]
|
H A D | test_urllib2_localnet.py | 4 import urllib2 303 ah = urllib2.HTTPBasicAuthHandler() 305 urllib2.install_opener(urllib2.build_opener(ah)) 308 except urllib2.HTTPError: 314 ah = urllib2.HTTPBasicAuthHandler() 317 urllib2.install_opener(urllib2.build_opener(ah)) 318 self.assertRaises(urllib2.HTTPError, urllib2.urlopen, self.server_url) 383 except urllib2.URLError: 448 urllib2.install_opener(opener) 509 except urllib2.URLError, f: [all …]
|
H A D | test_urllib2net.py | 6 import urllib2 37 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 115 None, urllib2.URLError), 166 req = urllib2.Request(urlwith_frag) 167 res = urllib2.urlopen(req) 173 opener = urllib2.build_opener() 185 opener = urllib2.build_opener() 186 request = urllib2.Request(url) 202 req = urllib2.urlopen(URL) 230 except urllib2.URLError as err: [all …]
|
/dports/devel/py-gevent/gevent-21.8.0/src/greentest/2.7/ |
H A D | test_urllib2.py | 9 import urllib2 47 f = urllib2.urlopen(file_url) 64 urllib2.urlopen( 365 raise urllib2.URLError("blah") 480 from urllib2 import URLError 686 h = urllib2.FileHandler() 749 h = urllib2.FileHandler() 779 h = urllib2.AbstractHTTPHandler() 885 h = urllib2.HTTPErrorProcessor() 981 except urllib2.HTTPError: [all …]
|
H A D | test_urllib2_localnet.py | 4 import urllib2 303 ah = urllib2.HTTPBasicAuthHandler() 305 urllib2.install_opener(urllib2.build_opener(ah)) 308 except urllib2.HTTPError: 314 ah = urllib2.HTTPBasicAuthHandler() 317 urllib2.install_opener(urllib2.build_opener(ah)) 318 self.assertRaises(urllib2.HTTPError, urllib2.urlopen, self.server_url) 383 except urllib2.URLError: 448 urllib2.install_opener(opener) 509 except urllib2.URLError, f: [all …]
|
H A D | test_urllib2net.py | 6 import urllib2 37 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 115 None, urllib2.URLError), 166 req = urllib2.Request(urlwith_frag) 167 res = urllib2.urlopen(req) 173 opener = urllib2.build_opener() 185 opener = urllib2.build_opener() 186 request = urllib2.Request(url) 202 req = urllib2.urlopen(URL) 230 except urllib2.URLError as err: [all …]
|
/dports/net/kget/kget-21.12.3/transfer-plugins/contentfetch/scripts/youtubedl/ |
H A D | kget_youtubedl.py | 43 import urllib2 69 retval = urllib2.Request(url) 85 response = urllib2.urlopen(request) 109 except (urllib2.URLError, ValueError, httplib.HTTPException, TypeError, socket.error): 196 urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())) 197 urllib2.install_opener(urllib2.build_opener(urllib2.HTTPCookieProcessor())) 218 urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())) 219 urllib2.install_opener(urllib2.build_opener(urllib2.HTTPCookieProcessor()))
|
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
H A D | test_urllib2.py | 8 import urllib2 9 from urllib2 import Request, OpenerDirector 37 f = urllib2.urlopen(file_url) 342 raise urllib2.URLError("blah") 457 from urllib2 import URLError 662 h = urllib2.FileHandler() 725 h = urllib2.FileHandler() 755 h = urllib2.AbstractHTTPHandler() 861 h = urllib2.HTTPErrorProcessor() 956 except urllib2.HTTPError: [all …]
|
/dports/www/py-httpretty/httpretty-1.1.4/tests/functional/ |
H A D | test_decorator.py | 7 import urllib.request as urllib2 namespace 9 import urllib2 18 fd = urllib2.urlopen('http://localhost/') 37 fd = urllib2.urlopen('http://localhost/') 61 fd = urllib2.urlopen('http://localhost/') 72 fd = urllib2.urlopen('http://localhost/') 92 fd = urllib2.urlopen('http://localhost/') 98 fd = urllib2.urlopen('http://localhost/') 106 fd = urllib2.urlopen('http://localhost/') 112 fd = urllib2.urlopen('http://localhost/')
|
/dports/devel/py-gevent/gevent-21.8.0/src/greentest/2.7pypy/ |
H A D | test_urllib2_localnet.py | 4 import urllib2 305 ah = urllib2.HTTPBasicAuthHandler() 307 urllib2.install_opener(urllib2.build_opener(ah)) 310 except urllib2.HTTPError: 316 ah = urllib2.HTTPBasicAuthHandler() 319 urllib2.install_opener(urllib2.build_opener(ah)) 320 self.assertRaises(urllib2.HTTPError, urllib2.urlopen, self.server_url) 388 except urllib2.URLError: 453 urllib2.install_opener(opener) 517 except urllib2.URLError, f: [all …]
|
H A D | test_urllib2.py | 9 import urllib2 44 f = urllib2.urlopen(file_url) 61 urllib2.urlopen( 365 raise urllib2.URLError("blah") 480 from urllib2 import URLError 686 h = urllib2.FileHandler() 749 h = urllib2.FileHandler() 779 h = urllib2.AbstractHTTPHandler() 885 h = urllib2.HTTPErrorProcessor() 981 except urllib2.HTTPError: [all …]
|
H A D | test_urllib2net.py | 6 import urllib2 30 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 107 None, urllib2.URLError), 158 req = urllib2.Request(urlwith_frag) 159 res = urllib2.urlopen(req) 165 opener = urllib2.build_opener() 177 opener = urllib2.build_opener() 178 request = urllib2.Request(url) 193 req = urllib2.urlopen(URL) 221 except urllib2.URLError as err: [all …]
|
/dports/devel/libzookeeper/apache-zookeeper-3.7.0/zookeeper-contrib/zookeeper-contrib-rest/src/python/ |
H A D | zkrest.py | 18 import urllib2 24 class RequestWithMethod(urllib2.Request): 32 urllib2.Request.get_method(self) 145 except urllib2.HTTPError, e: 163 req = urllib2.urlopen(uri) 170 except urllib2.HTTPError, e: 178 req = urllib2.Request(uri, {}) 188 except urllib2.HTTPError, e: 202 return urllib2.urlopen(req).read() 213 return urllib2.urlopen(req).read() [all …]
|
/dports/devel/libzookeeper/apache-zookeeper-3.7.0/zookeeper-contrib/zookeeper-contrib-huebrowser/zkui/src/zkui/ |
H A D | rest.py | 18 import urllib2 24 class RequestWithMethod(urllib2.Request): 32 urllib2.Request.get_method(self) 150 except urllib2.HTTPError, e: 175 req = urllib2.urlopen(uri) 182 except urllib2.HTTPError, e: 190 req = urllib2.Request(uri, {}) 200 except urllib2.HTTPError, e: 214 return urllib2.urlopen(req).read() 225 return urllib2.urlopen(req).read() [all …]
|
/dports/sysutils/sd-agent/sd-agent-1.13.4/ |
H A D | sd-deploy.py | 18 import urllib2 68 requestAgent = urllib2.urlopen('http://www.serverdensity.com/agentupdate/') 71 except urllib2.HTTPError, e: 75 except urllib2.URLError, e: 188 mgr = urllib2.HTTPPasswordMgrWithDefaultRealm() 190 …opener = urllib2.build_opener(urllib2.HTTPBasicAuthHandler(mgr), urllib2.HTTPDigestAuthHandler(mgr… 192 urllib2.install_opener(opener) 195 …requestAdd = urllib2.Request(sys.argv[1] + '/1.0/?account=' + sys.argv[2] + '&c=servers/add', post… 198 responseAdd = urllib2.urlopen(requestAdd) 202 except urllib2.HTTPError, e: [all …]
|
/dports/www/nginx-full/nginx_upstream_module-1278ee5/test/ |
H A D | http_utils.py | 7 import urllib2 19 req = urllib2.Request(url) 37 except urllib2.HTTPError as e: 52 req = urllib2.Request(url) 58 res = urllib2.urlopen(req, data) 70 except urllib2.HTTPError as e: 85 req = urllib2.Request(url) 94 res = urllib2.urlopen(req) 107 except urllib2.HTTPError as e: 130 res = urllib2.urlopen(req) [all …]
|