def __init__(self, **kwargs): Protocol.__init__(self, **kwargs) self.client = None self.shell = None self.cancel = False # Since each protocol may be created in it's own thread, we must # re-initialize the random number generator to make sure that # child threads have no way of guessing the numbers of the parent. # If we don't, PyCrypto generates an error message for security # reasons. try: Crypto.Random.atfork() except AttributeError: # pycrypto versions that have no "Random" module also do not # detect the missing atfork() call, so they do not raise. pass # Paramiko client stuff. self._system_host_keys = paramiko.HostKeys() self._host_keys = paramiko.HostKeys() self._host_keys_filename = None if self.verify_fingerprint: self._missing_host_key = self._reject_host_key else: self._missing_host_key = self._add_host_key
def __init__(self, device=None, **kwargs): """ @note: Also supports all keyword arguments that L{Protocol} supports. @keyword device: The L{Exscript.emulators.VirtualDevice} with which to communicate. """ Protocol.__init__(self, **kwargs) self.device = device self.init_done = False self.cancel = False self.response = None if not self.device: self.device = VirtualDevice('dummy', strict=False)
def __init__(self, device = None, **kwargs): """ @note: Also supports all keyword arguments that L{Protocol} supports. @keyword device: The L{Exscript.emulators.VirtualDevice} with which to communicate. """ Protocol.__init__(self, **kwargs) self.device = device self.init_done = False self.cancel = False self.response = None if not self.device: self.device = VirtualDevice('dummy', strict = False)
def __init__(self, device=None, **kwargs): """ .. HINT:: Also supports all keyword arguments that :class:`Protocol` supports. :keyword device: The :class:`Exscript.emulators.VirtualDevice` with which to communicate. """ Protocol.__init__(self, **kwargs) self.device = device self.init_done = False self.cancel = False self.response = None if not self.device: self.device = VirtualDevice('dummy', strict=False)
def __init__(self, **kwargs): Protocol.__init__(self, **kwargs) self.tn = None