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 | 69 with self.urlopen(self.url) as open_url: 72 self.assertTrue(hasattr(open_url, attr), "object returned from " 74 self.assertTrue(open_url.read(), "calling 'read' failed") 78 with self.urlopen(self.url) as open_url: 79 self.assertIsInstance(open_url.readline(), bytes, 81 self.assertIsInstance(open_url.readlines(), list, 86 with self.urlopen(self.url) as open_url: 87 info_obj = open_url.info() 95 with self.urlopen(self.url) as open_url: 96 gotten_url = open_url.geturl() [all …]
|
D | test_urllib2_localnet.py | 618 with urllib.request.urlopen("http://localhost:%s" % handler.port) as open_url: 620 self.assertTrue(hasattr(open_url, attr), "object returned from " 622 self.assertTrue(open_url.read(), "calling 'read' failed") 626 open_url = urllib.request.urlopen( 628 with open_url: 629 info_obj = open_url.info() 638 open_url = urllib.request.urlopen("http://localhost:%s" % handler.port) 639 with open_url: 640 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 | 853 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
|