Skip to content
Snippets Groups Projects
Commit 1b001f9d authored by Sean Farley's avatar Sean Farley
Browse files

ssh: move imports to top of file

parent 6a3c0c2b
No related branches found
No related tags found
No related merge requests found
from dulwich.client import SubprocessWrapper
from mercurial import util
......@@ -1,4 +2,5 @@
from mercurial import util
import subprocess
class SSHVendor(object):
"""Parent class for ui-linked Vendor classes."""
......@@ -12,10 +14,6 @@
class _Vendor(SSHVendor):
def run_command(self, host, command, username=None, port=None):
from dulwich.client import SubprocessWrapper
from mercurial import util
import subprocess
sshcmd = ui.config("ui", "ssh", "ssh")
args = util.sshargs(sshcmd, host, username, port)
cmd = '%s %s %s' % (sshcmd, args,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment