MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _create_socket

Method _create_socket

tools/python-3.11.9-amd64/Lib/nntplib.py:398–402  ·  view source on GitHub ↗
(self, timeout)

Source from the content-addressed store, hash-verified

396 self._close()
397
398 def _create_socket(self, timeout):
399 if timeout is not None and not timeout:
400 raise ValueError('Non-blocking socket (timeout=0) is not supported')
401 sys.audit("nntplib.connect", self, self.host, self.port)
402 return socket.create_connection((self.host, self.port), timeout)
403
404 def getwelcome(self):
405 """Get the welcome message from the server

Callers 2

__init__Method · 0.95
_create_socketMethod · 0.45

Calls 1

create_connectionMethod · 0.45

Tested by

no test coverage detected