Exemplo n.º 1
0
    def __init__(self, debuglevel=0, context=None):
        # Old form for Python 2 compatibility.
        HTTPSHandler.__init__(self, debuglevel, context)

        self.lock = threading.Lock()
        self.pool = set()
        self.free = set()
Exemplo n.º 2
0
 def __init__(self, ca_file):  # pylint: disable=super-on-old-class
     if sys.version_info[0] >= 3:
         super(HTTPSAuthHandler, self).__init__()
     else:
         # NOTE: WTF? HTTPSHandler's super-superclass BaseHandler is an old-style class! o_O
         HTTPSHandler.__init__(self)
     self.__ca_file = ca_file
Exemplo n.º 3
0
	def __init__(self, debuglevel=0, context=None):
		# Old form for Python 2 compatibility.
		HTTPSHandler.__init__(self, debuglevel, context)
		
		self.lock = threading.Lock()
		self.pool = set()
		self.free = set()
Exemplo n.º 4
0
 def __init__(self, key, cert):
     HTTPSHandler.__init__(self)
     self.key = key
     self.cert = cert
Exemplo n.º 5
0
 def __init__(self, key, cert):
     HTTPSHandler.__init__(self)
     self.key = key
     self.cert = cert
Exemplo n.º 6
0
 def __init__(self):
     HTTPSHandler.__init__(self)
Exemplo n.º 7
0
 def __init__(self, **kwargs):
   """Constructor. Any keyword args are passed to the httpclient handler."""
   HTTPSHandler.__init__(self)
   self._connection_args = kwargs
Exemplo n.º 8
0
 def __init__(self, passwordmgr, context):
     HTTPSHandler.__init__(self, context=context)
     AbstractDigestAuthHandler.__init__(self, passwordmgr)