MCPcopy Index your code
hub / github.com/python/cpython / _wrap_ipv6

Method _wrap_ipv6

Lib/http/client.py:973–976  ·  view source on GitHub ↗
(self, ip)

Source from the content-addressed store, hash-verified

971 self.debuglevel = level
972
973 def _wrap_ipv6(self, ip):
974 if b':' in ip and ip[0] != b'['[0]:
975 return b"[" + ip + b"]"
976 return ip
977
978 def _tunnel(self):
979 connect = b"CONNECT %s:%d %s\r\n" % (

Callers 2

_tunnelMethod · 0.95
putrequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected