Searched refs:splitport (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_urllib.py | 913 splitport = urllib.splitport 914 self.assertEqual(splitport('parrot:88'), ('parrot', '88')) 915 self.assertEqual(splitport('parrot'), ('parrot', None)) 916 self.assertEqual(splitport('parrot:'), ('parrot', None)) 917 self.assertEqual(splitport('127.0.0.1'), ('127.0.0.1', None)) 918 self.assertEqual(splitport('parrot:cheese'), ('parrot:cheese', None)) 919 self.assertEqual(splitport('[::1]:88'), ('[::1]', '88')) 920 self.assertEqual(splitport('[::1]'), ('[::1]', None)) 921 self.assertEqual(splitport(':88'), ('', '88'))
|
/external/python/cpython2/Lib/ |
D | urllib.py | 498 host, port = splitport(host) 519 host, port = splitport(host) 1134 def splitport(host): function 1425 hostonly, port = splitport(host) 1453 hostonly, port = splitport(host) 1600 rawHost, port = splitport(host)
|
D | urllib2.py | 121 addinfourl, splitport, splittag, toBytes, 818 host, port = splitport(authority) 1366 host, port = splitport(host) 1386 host, port = splitport(host)
|