CHANGES
- * The ParamikoSSHVendor class has been moved to dulwich.contrib.paramiko,
- as it's currently untested. (Jelmer Vernooij, #364)
+ * The ParamikoSSHVendor class has been moved to
+ * dulwich.contrib.paramiko_vendor, as it's currently untested.
+ (Jelmer Vernooij, #364)
0.11.1 2015-09-13
def ParamikoSSHVendor(**kwargs):
import warnings
warnings.warn(
- "ParamikoSSHVendor has been moved to dulwich.contrib.paramiko.",
+ "ParamikoSSHVendor has been moved to dulwich.contrib.paramiko_vendor.",
DeprecationWarning)
- from dulwich.contrib.paramiko import ParamikoSSHVendor
+ from dulwich.contrib.paramiko_vendor import ParamikoSSHVendor
return ParamikoSSHVendor(**kwargs)
TraditionalGitClient.__init__(self, **kwargs)
self.alternative_paths = {}
if vendor is not None:
- self.vendor = vendor
+ self.ssh_vendor = vendor
else:
- self.vendor = get_ssh_vendor()
+ self.ssh_vendor = get_ssh_vendor()
def _get_cmd_path(self, cmd):
cmd = self.alternative_paths.get(cmd, b'git-' + cmd)
if path.startswith(b"/~"):
path = path[1:]
argv = self._get_cmd_path(cmd) + [path]
- con = self.vendor.run_command(
+ con = self.ssh_vendor.run_command(
self.host, argv, port=self.port, username=self.username)
return (Protocol(con.read, con.write, con.close,
report_activity=self._report_activity),
-# paramako.py -- paramiko implementation of the Dulwich SSHVendor interface
+# paramiko_vendor.py -- paramiko implementation of the SSHVendor interface
# Copyright (C) 2013 Aaron O'Mullan <aaron.omullan@friendco.de>
#
# This program is free software; you can redistribute it and/or
the dulwich.client.get_ssh_vendor attribute:
>>> from dulwich import client as _mod_client
- >>> from dulwich.contrib.paramiko import ParamikoSSHVendor
+ >>> from dulwich.contrib.paramiko_vendor import ParamikoSSHVendor
>>> _mod_client.get_ssh_vendor = ParamikoSSHVendor
This implementation is experimental and does not have any tests.
"""
import paramiko
+import paramiko.client
import subprocess
import threading