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

Method __new__

Lib/ssl.py:430–439  ·  view source on GitHub ↗
(cls, protocol=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

428 sslobject_class = None # SSLObject is assigned later.
429
430 def __new__(cls, protocol=None, *args, **kwargs):
431 if protocol is None:
432 warnings.warn(
433 "ssl.SSLContext() without protocol argument is deprecated.",
434 category=DeprecationWarning,
435 stacklevel=2
436 )
437 protocol = PROTOCOL_TLS
438 self = _SSLContext.__new__(cls, protocol)
439 return self
440
441 def _encode_hostname(self, hostname):
442 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