Home
last modified time | relevance | path

Searched refs:urllib2 (Results 51 – 75 of 2205) sorted by relevance

12345678910>>...89

/dports/lang/spidermonkey60/firefox-60.9.0/testing/mozharness/mozharness/mozilla/bouncer/
H A Dsubmitter.py7 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 Dsubmitter.py7 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 Ddownload_file.py15 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 Dmouse_and_screen_resolution.py20 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 Dwebpagereplay_go_server_unittest.py6 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 Dtest_urllib2.py3 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 Dsmb_SMBHandler.rst5 …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 Ddownload_file.py15 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 Dicecast2_all10 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 Dpublish_toolstate.py19 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 Dtest_pysocks.py13 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 Dremote_connection.py19 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 Dremote_connection.py19 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 Dtest_parser.py4 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 Dcode.rst45 .. 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 Drsnp.py6 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 Dredirect-urllib2.yml5 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 Dredirect-urllib2.yml5 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 Dredirect-urllib2.yml5 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 Dbase.py8 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 Dweb.py29 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 Dsendgrid.py4 import urllib2
72 request = urllib2.Request(
81 response = urllib2.urlopen(request)
82 except (urllib2.HTTPError, urllib2.URLError):
H A Dpostmark.py3 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 Dsockshandler.py13 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 Dsockshandler.py13 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))

12345678910>>...89