Searched refs:splitport (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_urllib.py | 934 splitport = urllib.splitport 935 self.assertEqual(splitport('parrot:88'), ('parrot', '88')) 936 self.assertEqual(splitport('parrot'), ('parrot', None)) 937 self.assertEqual(splitport('parrot:'), ('parrot', None)) 938 self.assertEqual(splitport('127.0.0.1'), ('127.0.0.1', None)) 939 self.assertEqual(splitport('parrot:cheese'), ('parrot:cheese', None)) 940 self.assertEqual(splitport('[::1]:88'), ('[::1]', '88')) 941 self.assertEqual(splitport('[::1]'), ('[::1]', None)) 942 self.assertEqual(splitport(':88'), ('', '88'))
|
/external/python/cpython3/Lib/test/ |
D | test_urlparse.py | 1084 splitport = urllib.parse.splitport 1085 self.assertEqual(splitport('parrot:88'), ('parrot', '88')) 1086 self.assertEqual(splitport('parrot'), ('parrot', None)) 1087 self.assertEqual(splitport('parrot:'), ('parrot', None)) 1088 self.assertEqual(splitport('127.0.0.1'), ('127.0.0.1', None)) 1089 self.assertEqual(splitport('parrot:cheese'), ('parrot:cheese', None)) 1090 self.assertEqual(splitport('[::1]:88'), ('[::1]', '88')) 1091 self.assertEqual(splitport('[::1]'), ('[::1]', None)) 1092 self.assertEqual(splitport(':88'), ('', '88'))
|
/external/python/cpython2/Lib/ |
D | urllib.py | 498 host, port = splitport(host) 519 host, port = splitport(host) 1133 def splitport(host): function 1424 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)
|
/external/python/cpython3/Lib/urllib/ |
D | request.py | 105 splittype, splithost, splitport, splituser, splitpasswd, 875 host, port = splitport(authority) 1481 host, port = splitport(host) 1506 host, port = splitport(host) 1997 host, port = splitport(host) 2015 host, port = splitport(host) 2505 hostonly, port = splitport(host) 2536 hostonly, port = splitport(host) 2690 rawHost, port = splitport(host)
|
D | parse.py | 1006 def splitport(host): function
|
/external/python/httplib2/python2/httplib2/ |
D | __init__.py | 2179 hostname, port = urllib.splitport(authority)
|