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

Method __new__

tools/python-3.11.9-amd64/Lib/ssl.py:492–501  ·  view source on GitHub ↗
(cls, protocol=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

490 sslobject_class = None # SSLObject is assigned later.
491
492 def __new__(cls, protocol=None, *args, **kwargs):
493 if protocol is None:
494 warnings.warn(
495 "ssl.SSLContext() without protocol argument is deprecated.",
496 category=DeprecationWarning,
497 stacklevel=2
498 )
499 protocol = PROTOCOL_TLS
500 self = _SSLContext.__new__(cls, protocol)
501 return self
502
503 def _encode_hostname(self, hostname):
504 if hostname is None:

Callers 5

__new__Method · 0.45
fromnidMethod · 0.45
fromnameMethod · 0.45
_createMethod · 0.45
_createMethod · 0.45

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected