Searched refs:open_url (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_urllibnet.py | 69 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 …]
|
D | test_urllib2_localnet.py | 598 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/ |
D | test_urllibnet.py | 63 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 …]
|
D | test_urllib2_localnet.py | 614 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/ |
D | test_packageindex.py | 31 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/ |
D | package_index.py | 346 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/ |
D | texi2html.py | 854 def open_url(self): self.startsaving() member in TexinfoParser
|
/external/python/cpython2/Tools/scripts/ |
D | texi2html.py | 853 def open_url(self): self.startsaving() member in TexinfoParser
|
/external/python/setuptools/ |
D | CHANGES.rst | 2946 * Distribute #21: Allow PackageIndex.open_url to gracefully handle all cases of a
|