Lines Matching refs:urllib
7 import urllib.parse
8 import urllib.request
28 self.addCleanup(urllib.request.urlcleanup)
30 domain = urllib.parse.urlparse(support.TEST_HTTP_URL).netloc
32 f = urllib.request.urlopen(support.TEST_HTTP_URL)
55 self.addCleanup(urllib.request.urlcleanup)
61 r = urllib.request.urlopen(*args, **kwargs)
104 open_url = urllib.request.FancyURLopener().open(URL)
147 urllib.request.urlopen("http://{}/".format(bogus_domain))
155 self.addCleanup(urllib.request.urlcleanup)
161 file_location, info = urllib.request.urlretrieve(*args, **kwargs)