changeset 890:1b001f9df71b

ssh: move imports to top of file
author Sean Farley <sean@farley.io>
date Wed, 22 Apr 2015 16:23:09 -0700
parents 6a3c0c2b8245
children 5322f12e64ed
files hggit/_ssh.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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,