Lines Matching refs:urllib
8 import urllib.error
9 import urllib.request
38 _urlopen_with_retry = _wrap_with_retry_thrice(urllib.request.urlopen,
39 urllib.error.URLError)
85 self.addCleanup(urllib.request.urlcleanup)
112 None, urllib.error.URLError),
125 urllib.error.URLError),
131 self.assertRaises(ValueError, urllib.request.urlopen,'./relative_path/to/file')
164 req = urllib.request.Request(urlwith_frag)
165 res = urllib.request.urlopen(req)
172 req = urllib.request.Request(redirect_url_with_frag)
173 res = urllib.request.urlopen(req)
180 opener = urllib.request.build_opener()
181 request = urllib.request.Request(url)
199 with urllib.request.urlopen(URL) as res:
207 req = urllib.request.urlopen(URL)
216 urlopen = urllib.request.build_opener(*handlers).open
218 urlopen = _wrap_with_retry_thrice(urlopen, urllib.error.URLError)
253 cfh = urllib.request.CacheFTPHandler()
264 self.addCleanup(urllib.request.urlcleanup)