예제 #1
0
파일: ssl.py 프로젝트: nirs/cpython
 def __new__(cls, protocol=None, *args, **kwargs):
     if protocol is None:
         warnings.warn(
             "ssl.SSLContext() without protocol argument is deprecated.",
             category=DeprecationWarning,
             stacklevel=2)
         protocol = PROTOCOL_TLS
     self = _SSLContext.__new__(cls, protocol)
     return self
예제 #2
0
 def __new__(cls, protocol=PROTOCOL_TLS, *args, **kwargs):
     self = _SSLContext.__new__(cls, protocol)
     return self
예제 #3
0
 def __new__(cls, protocol, *args, **kwargs):
     return _SSLContext.__new__(cls, protocol)
예제 #4
0
 def __new__(cls, protocol, *args, **kwargs):
     self = _SSLContext.__new__(cls, protocol)
     if protocol != _SSLv2_IF_EXISTS:
         self.set_ciphers(_DEFAULT_CIPHERS)
     return self
예제 #5
0
파일: ssl.py 프로젝트: alej0varas/pythones
 def __new__(cls, protocol, *args, **kwargs):
     self = _SSLContext.__new__(cls, protocol)
     if protocol != _SSLv2_IF_EXISTS:
         self.set_ciphers(_DEFAULT_CIPHERS)
     return self
예제 #6
0
파일: ssl.py 프로젝트: actionless/cpython
 def __new__(cls, protocol=PROTOCOL_TLS, *args, **kwargs):
     self = _SSLContext.__new__(cls, protocol)
     return self