Searched refs:splitnport (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_urllib.py | 945 splitnport = urllib.splitnport 946 self.assertEqual(splitnport('parrot:88'), ('parrot', 88)) 947 self.assertEqual(splitnport('parrot'), ('parrot', -1)) 948 self.assertEqual(splitnport('parrot', 55), ('parrot', 55)) 949 self.assertEqual(splitnport('parrot:'), ('parrot', -1)) 950 self.assertEqual(splitnport('parrot:', 55), ('parrot', 55)) 951 self.assertEqual(splitnport('127.0.0.1'), ('127.0.0.1', -1)) 952 self.assertEqual(splitnport('127.0.0.1', 55), ('127.0.0.1', 55)) 953 self.assertEqual(splitnport('parrot:cheese'), ('parrot', None)) 954 self.assertEqual(splitnport('parrot:cheese', 55), ('parrot', None))
|
/external/python/cpython3/Lib/test/ |
D | test_urlparse.py | 1095 splitnport = urllib.parse.splitnport 1096 self.assertEqual(splitnport('parrot:88'), ('parrot', 88)) 1097 self.assertEqual(splitnport('parrot'), ('parrot', -1)) 1098 self.assertEqual(splitnport('parrot', 55), ('parrot', 55)) 1099 self.assertEqual(splitnport('parrot:'), ('parrot', -1)) 1100 self.assertEqual(splitnport('parrot:', 55), ('parrot', 55)) 1101 self.assertEqual(splitnport('127.0.0.1'), ('127.0.0.1', -1)) 1102 self.assertEqual(splitnport('127.0.0.1', 55), ('127.0.0.1', 55)) 1103 self.assertEqual(splitnport('parrot:cheese'), ('parrot', None)) 1104 self.assertEqual(splitnport('parrot:cheese', 55), ('parrot', None))
|
/external/python/cpython2/Tools/webchecker/ |
D | websucker.py | 94 host, port = urllib.splitnport(host)
|
/external/python/cpython3/Lib/urllib/ |
D | parse.py | 1019 def splitnport(host, defport=-1): function
|
/external/python/cpython2/Lib/ |
D | urllib.py | 1148 def splitnport(host, defport=-1): function
|