本文整理匯總了Python中paramiko.config.SSHConfig._config方法的典型用法代碼示例。如果您正苦於以下問題:Python SSHConfig._config方法的具體用法?Python SSHConfig._config怎麽用?Python SSHConfig._config使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類paramiko.config.SSHConfig
的用法示例。
在下文中一共展示了SSHConfig._config方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _clone_init_kwargs
# 需要導入模塊: from paramiko.config import SSHConfig [as 別名]
# 或者: from paramiko.config.SSHConfig import _config [as 別名]
def _clone_init_kwargs(self, *args, **kw):
# Parent kwargs
kwargs = super(Config, self)._clone_init_kwargs(*args, **kw)
# Transmit our internal SSHConfig via explicit-obj kwarg, thus
# bypassing any file loading. (Our extension of clone() above copies
# over other attributes as well so that the end result looks consistent
# with reality.)
new_config = SSHConfig()
# TODO: as with other spots, this implies SSHConfig needs a cleaner
# public API re: creating and updating its core data.
new_config._config = copy.deepcopy(self.base_ssh_config._config)
return dict(kwargs, ssh_config=new_config)