Searched refs:splitnport (Results 1 – 2 of 2) sorted by relevance
/third_party/python/Lib/test/ |
D | test_urlparse.py | 1197 splitnport = urllib.parse._splitnport 1198 self.assertEqual(splitnport('parrot:88'), ('parrot', 88)) 1199 self.assertEqual(splitnport('parrot'), ('parrot', -1)) 1200 self.assertEqual(splitnport('parrot', 55), ('parrot', 55)) 1201 self.assertEqual(splitnport('parrot:'), ('parrot', -1)) 1202 self.assertEqual(splitnport('parrot:', 55), ('parrot', 55)) 1203 self.assertEqual(splitnport('127.0.0.1'), ('127.0.0.1', -1)) 1204 self.assertEqual(splitnport('127.0.0.1', 55), ('127.0.0.1', 55)) 1205 self.assertEqual(splitnport('parrot:cheese'), ('parrot', None)) 1206 self.assertEqual(splitnport('parrot:cheese', 55), ('parrot', None)) [all …]
|
/third_party/python/Lib/urllib/ |
D | parse.py | 1116 def splitnport(host, defport=-1): function
|