Home
last modified time | relevance | path

Searched refs:splitport (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_urllib.py934 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/
Dtest_urlparse.py1084 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/
Durllib.py498 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)
Durllib2.py121 addinfourl, splitport, splittag, toBytes,
818 host, port = splitport(authority)
1366 host, port = splitport(host)
1386 host, port = splitport(host)
/external/python/cpython3/Lib/urllib/
Drequest.py105 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)
Dparse.py1006 def splitport(host): function
/external/python/httplib2/python2/httplib2/
D__init__.py2179 hostname, port = urllib.splitport(authority)