示例#1
0
 def __init__(self, *args, **kwargs):
     super(TLEngine, self).__init__(*args, **kwargs)
     self._connections = util.threading.local()
     proxy = kwargs.get('proxy')
     if proxy:
         self.TLConnection = base._proxy_connection_cls(TLConnection, proxy)
     else:
         self.TLConnection = TLConnection
示例#2
0
 def __init__(self, *args, **kwargs):
     super(TLEngine, self).__init__(*args, **kwargs)
     self._connections = util.threading.local()
     proxy = kwargs.get('proxy')
     if proxy:
         self.TLConnection = base._proxy_connection_cls(TLConnection, proxy)
     else:
         self.TLConnection = TLConnection
示例#3
0
    def __init__(self, *args, **kwargs):
        """Construct a new TLEngine."""

        super(TLEngine, self).__init__(*args, **kwargs)
        self.context = util.ThreadLocal()

        proxy = kwargs.get('proxy')
        if proxy:
            self.TLConnection = base._proxy_connection_cls(TLConnection, proxy)
        else:
            self.TLConnection = TLConnection
示例#4
0
    def __init__(self, *args, **kwargs):
        """Construct a new TLEngine."""

        super(TLEngine, self).__init__(*args, **kwargs)
        self.context = util.ThreadLocal()

        proxy = kwargs.get('proxy')
        if proxy:
            self.TLConnection = base._proxy_connection_cls(TLConnection, proxy)
        else:
            self.TLConnection = TLConnection