# HG changeset patch # User Sean Farley # Date 1429744989 25200 # Node ID 1b001f9df71b12966dd13f6f0a0b9ca59b463fd0 # Parent 6a3c0c2b8245865e1f008dca2b3c439115f88ba6 ssh: move imports to top of file diff --git a/hggit/_ssh.py b/hggit/_ssh.py --- a/hggit/_ssh.py +++ b/hggit/_ssh.py @@ -1,4 +1,6 @@ +from dulwich.client import SubprocessWrapper 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,