(cls, host, port, **kwargs)
| 66 | |
| 67 | |
| 68 | def fix_connect(cls, host, port, **kwargs): |
| 69 | if kwargs.pop("ipv6", False): |
| 70 | kwargs["family"] = socket.AF_INET6 |
| 71 | kwargs["nodelay"] = True |
| 72 | return cls(cls._connect(host, port, **kwargs)) |
| 73 | |
| 74 | |
| 75 | SocketStream.connect = classmethod(fix_connect) |