Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Dtest_urlparse.py1186 splitport = urllib.parse._splitport
1187 self.assertEqual(splitport('parrot:88'), ('parrot', '88'))
1188 self.assertEqual(splitport('parrot'), ('parrot', None))
1189 self.assertEqual(splitport('parrot:'), ('parrot', None))
1190 self.assertEqual(splitport('127.0.0.1'), ('127.0.0.1', None))
1191 self.assertEqual(splitport('parrot:cheese'), ('parrot:cheese', None))
1192 self.assertEqual(splitport('[::1]:88'), ('[::1]', '88'))
1193 self.assertEqual(splitport('[::1]'), ('[::1]', None))
1194 self.assertEqual(splitport(':88'), ('', '88'))
1296 urllib.parse.splitport('')
/third_party/python/Lib/urllib/
Dparse.py1093 def splitport(host): function