/dports/lang/spidermonkey60/firefox-60.9.0/testing/mozharness/mozharness/mozilla/bouncer/ |
H A D | submitter.py | 7 import urllib2 27 retry_exceptions=(urllib2.HTTPError, urllib2.URLError, 46 request = urllib2.Request(api_url) 57 res = urllib2.urlopen(request, timeout=60).read() 61 except urllib2.HTTPError as e: 67 except urllib2.URLError:
|
/dports/www/firefox-legacy/firefox-52.8.0esr/testing/mozharness/mozharness/mozilla/bouncer/ |
H A D | submitter.py | 7 import urllib2 27 retry_exceptions=(urllib2.HTTPError, urllib2.URLError, 46 request = urllib2.Request(api_url) 57 res = urllib2.urlopen(request, timeout=60).read() 61 except urllib2.HTTPError as e: 67 except urllib2.URLError:
|
/dports/lang/spidermonkey60/firefox-60.9.0/testing/mozharness/external_tools/ |
H A D | download_file.py | 15 import urllib2 22 f = urllib2.urlopen(url, timeout=30) 31 …raise urllib2.URLError("Download incomplete; content-length was %d, but only received %d" % (f_len… 38 except urllib2.HTTPError, e: 41 except urllib2.URLError, e:
|
H A D | mouse_and_screen_resolution.py | 20 import urllib2 31 return urllib2.urlopen(url, timeout=30).read() 32 except urllib2.HTTPError, e: 34 except urllib2.URLError, e: 73 except urllib2.HTTPError, e: 78 except urllib2.URLError, e:
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/telemetry/telemetry/internal/util/ |
H A D | webpagereplay_go_server_unittest.py | 6 import urllib2 36 req = urllib2.Request( 38 r = urllib2.urlopen(req) 42 req = urllib2.Request( 44 r = urllib2.urlopen(req)
|
/dports/net/py-eventlet/eventlet-0.33.0/tests/stdlib/ |
H A D | test_urllib2.py | 3 from eventlet.green import urllib2 9 ('urllib2', urllib2)) 13 HandlerTests.test_cookie_redirect, ('urllib2', urllib2)) 15 OpenerDirectorTests.test_badly_named_methods, ('urllib2', urllib2))
|
/dports/net/py-pysmb/pysmb-1.1.27/sphinx/source/api/ |
H A D | smb_SMBHandler.rst | 5 …ler class provides support for "smb://" URLs in the `urllib2 <http://docs.python.org/library/urlli… 14 In uploads, if the parent folders do not exist, an *urllib2.URLError* will be raised. 22 import urllib2 25 director = urllib2.build_opener(SMBHandler) 39 import urllib2 44 director = urllib2.build_opener(SMBHandler)
|
/dports/www/firefox-legacy/firefox-52.8.0esr/testing/mozharness/external_tools/ |
H A D | download_file.py | 15 import urllib2 22 f = urllib2.urlopen(url, timeout=30) 31 …raise urllib2.URLError("Download incomplete; content-length was %d, but only received %d" % (f_len… 38 except urllib2.HTTPError, e: 41 except urllib2.URLError, e:
|
/dports/sysutils/munin-contrib/contrib-c31cb28/plugins/icecast/ |
H A D | icecast2_all | 10 import urllib2 24 auth_handler = urllib2.HTTPBasicAuthHandler() 26 opener = urllib2.build_opener(auth_handler) 27 urllib2.install_opener(opener) 29 xmlweb = urllib2.urlopen("http://%s/admin/stats" % host)
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/ |
H A D | publish_toolstate.py | 19 import urllib2 20 from urllib2 import HTTPError 22 import urllib.request as urllib2 namespace 90 response = urllib2.urlopen(urllib2.Request(url, headers={ 183 response = urllib2.urlopen(urllib2.Request( 362 response = urllib2.urlopen(urllib2.Request(
|
/dports/net/py-pysocks/PySocks-1.7.1/test/ |
H A D | test_pysocks.py | 13 import urllib2 # py2 15 import urllib.request as urllib2 # py3 namespace 310 original_socket = urllib2.socket.socket 315 socks.wrap_module(urllib2) 319 res = urllib2.urlopen(url) 330 urllib2.socket.socket = original_socket 334 original_socket = urllib2.socket.socket 339 socks.wrap_module(urllib2) 343 res = urllib2.urlopen(url) 367 res = urllib2.urlopen(url) [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/ |
H A D | remote_connection.py | 19 import urllib2 27 class Request(urllib2.Request): 45 urllib2.Request.__init__(self, url, data=data) 95 class HttpErrorHandler(urllib2.HTTPDefaultErrorHandler): 364 password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() 375 opener = urllib2.build_opener(urllib2.HTTPRedirectHandler(), 377 urllib2.HTTPBasicAuthHandler(password_manager)) 379 opener = urllib2.build_opener(urllib2.HTTPRedirectHandler(),
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/webdriver/pylib/selenium/webdriver/remote/ |
H A D | remote_connection.py | 19 import urllib2 27 class Request(urllib2.Request): 45 urllib2.Request.__init__(self, url, data=data) 95 class HttpErrorHandler(urllib2.HTTPDefaultErrorHandler): 364 password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() 375 opener = urllib2.build_opener(urllib2.HTTPRedirectHandler(), 377 urllib2.HTTPBasicAuthHandler(password_manager)) 379 opener = urllib2.build_opener(urllib2.HTTPRedirectHandler(),
|
/dports/misc/py-pykml/pykml-0.2.0/src/pykml/test/ |
H A D | test_parser.py | 4 import urllib2 5 URLError = urllib2.URLError 7 import urllib.request as urllib2 namespace 82 fileobject = urllib2.urlopen(url) 155 fileobject = urllib2.urlopen(url) 173 fileobject = urllib2.urlopen(url) 208 fileobject = urllib2.urlopen(url)
|
/dports/www/py-pysmartdl/pySmartDL-1.3.4/docs/ |
H A D | code.rst | 45 .. exception:: urllib2.HTTPError 47 … on the `official documentation <http://docs.python.org/2/library/urllib2.html#urllib2.HTTPError>`… 49 .. exception:: urllib2.URLError 51 … on the `official documentation <http://docs.python.org/2/library/urllib2.html#urllib2.URLError>`_.
|
/dports/biology/ugene/ugene-40.1/data/snp_scripts/ |
H A D | rsnp.py | 6 import urllib, urllib2, cookielib 90 opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookie_jar)) 91 urllib2.install_opener(opener) 95 …req = urllib2.Request(url, "b1=Calculate&snpf1={0}&snpf2={1}&SNPDM_0={2}&SNPDM_1={3}&DSL={4}".form… 96 rsp = urllib2.urlopen(req)
|
/dports/sysutils/ansible2/ansible-2.9.27/test/integration/targets/uri/tasks/ |
H A D | redirect-urllib2.yml | 5 follow_redirects: urllib2 23 follow_redirects: urllib2 42 follow_redirects: urllib2 63 follow_redirects: urllib2 81 follow_redirects: urllib2 100 follow_redirects: urllib2 121 follow_redirects: urllib2 139 follow_redirects: urllib2 158 follow_redirects: urllib2 179 follow_redirects: urllib2 [all …]
|
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/integration/targets/uri/tasks/ |
H A D | redirect-urllib2.yml | 5 follow_redirects: urllib2 23 follow_redirects: urllib2 42 follow_redirects: urllib2 63 follow_redirects: urllib2 81 follow_redirects: urllib2 100 follow_redirects: urllib2 121 follow_redirects: urllib2 139 follow_redirects: urllib2 158 follow_redirects: urllib2 179 follow_redirects: urllib2 [all …]
|
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/integration/targets/uri/tasks/ |
H A D | redirect-urllib2.yml | 5 follow_redirects: urllib2 23 follow_redirects: urllib2 42 follow_redirects: urllib2 63 follow_redirects: urllib2 81 follow_redirects: urllib2 100 follow_redirects: urllib2 121 follow_redirects: urllib2 139 follow_redirects: urllib2 158 follow_redirects: urllib2 179 follow_redirects: urllib2 [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/testing/web-platform/tests/tools/wptserve/tests/functional/ |
H A D | base.py | 8 import urllib2 20 class Request(urllib2.Request): 22 urllib2.Request.__init__(self, *args, **kwargs) 33 urllib2.Request.add_data(self, data) 65 return urllib2.urlopen(req)
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/tools/blinkpy/common/net/ |
H A D | web.py | 29 import urllib2 36 class _HTTPRedirectHandler2(urllib2.HTTPRedirectHandler): # pylint:disable=no-init 49 opener = urllib2.build_opener(Web._HTTPRedirectHandler2) 50 request = urllib2.Request(url=url, data=data)
|
/dports/devel/py-marrow.mailer/marrow.mailer-4.0.3/marrow/mailer/transport/ |
H A D | sendgrid.py | 4 import urllib2 72 request = urllib2.Request( 81 response = urllib2.urlopen(request) 82 except (urllib2.HTTPError, urllib2.URLError):
|
H A D | postmark.py | 3 import urllib2 56 request = urllib2.Request( 67 response = urllib2.urlopen(request) 68 except (urllib2.HTTPError, urllib2.URLError) as e:
|
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/bq/third_party/socks/ |
H A D | sockshandler.py | 13 import urllib2 16 import urllib.request as urllib2 namespace 51 class SocksiPyHandler(urllib2.HTTPHandler, urllib2.HTTPSHandler): 55 urllib2.HTTPHandler.__init__(self) 77 opener = urllib2.build_opener(SocksiPyHandler(socks.PROXY_TYPE_SOCKS5, "localhost", port))
|
/dports/net-p2p/bazarr/bazarr-1.0.2/libs/ |
H A D | sockshandler.py | 13 import urllib2 16 import urllib.request as urllib2 namespace 51 class SocksiPyHandler(urllib2.HTTPHandler, urllib2.HTTPSHandler): 55 urllib2.HTTPHandler.__init__(self) 77 opener = urllib2.build_opener(SocksiPyHandler(socks.PROXY_TYPE_SOCKS5, "localhost", port))
|