def copy(self, pty=None):
        h = self.__class__(pty=(pty or self.pty), logger=self.logger)
        h.host_context = self.host_context.copy()
        return h
Create a deep copy of this Host class.
dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/host/base.py/Host.copy