Home
last modified time | relevance | path

Searched refs:open_url (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_urllibnet.py69 open_url = self.urlopen("http://www.example.com/")
72 self.assertTrue(hasattr(open_url, attr), "object returned from "
75 self.assertTrue(open_url.read(), "calling 'read' failed")
77 open_url.close()
81 open_url = self.urlopen("http://www.example.com/")
83 self.assertIsInstance(open_url.readline(), basestring,
85 self.assertIsInstance(open_url.readlines(), list,
88 open_url.close()
92 open_url = self.urlopen("http://www.example.com/")
94 info_obj = open_url.info()
[all …]
Dtest_urllib2_localnet.py598 open_url = urllib2.urlopen("http://localhost:%s" % handler.port)
600 self.assertTrue(hasattr(open_url, attr), "object returned from "
603 self.assertTrue(open_url.read(), "calling 'read' failed")
605 open_url.close()
610 open_url = urllib2.urlopen("http://localhost:%s" % handler.port)
611 info_obj = open_url.info()
621 open_url = urllib2.urlopen("http://localhost:%s" % handler.port)
622 url = open_url.geturl()
/external/python/cpython3/Lib/test/
Dtest_urllibnet.py63 with self.urlopen(self.url) as open_url:
66 self.assertTrue(hasattr(open_url, attr), "object returned from "
68 self.assertTrue(open_url.read(), "calling 'read' failed")
72 with self.urlopen(self.url) as open_url:
73 self.assertIsInstance(open_url.readline(), bytes,
75 self.assertIsInstance(open_url.readlines(), list,
80 with self.urlopen(self.url) as open_url:
81 info_obj = open_url.info()
89 with self.urlopen(self.url) as open_url:
90 gotten_url = open_url.geturl()
[all …]
Dtest_urllib2_localnet.py614 open_url = urllib.request.urlopen("http://localhost:%s" % handler.port)
616 self.assertTrue(hasattr(open_url, attr), "object returned from "
619 self.assertTrue(open_url.read(), "calling 'read' failed")
621 open_url.close()
625 open_url = urllib.request.urlopen(
627 with open_url:
628 info_obj = open_url.info()
637 open_url = urllib.request.urlopen("http://localhost:%s" % handler.port)
638 with open_url:
639 url = open_url.geturl()
/external/python/setuptools/setuptools/tests/
Dtest_packageindex.py31 v = index.open_url(url)
47 v = index.open_url(url)
64 v = index.open_url(url)
81 index.open_url(url)
/external/python/setuptools/setuptools/
Dpackage_index.py346 f = self.open_url(url, tmpl % url)
727 fp = self.open_url(url)
760 def open_url(self, url, warning=None): member in PackageIndex
/external/python/cpython3/Tools/scripts/
Dtexi2html.py854 def open_url(self): self.startsaving() member in TexinfoParser
/external/python/cpython2/Tools/scripts/
Dtexi2html.py853 def open_url(self): self.startsaving() member in TexinfoParser
/external/python/setuptools/
DCHANGES.rst2946 * Distribute #21: Allow PackageIndex.open_url to gracefully handle all cases of a