Only import subprocess once.
authorJelmer Vernooij <jelmer@jelmer.uk>
Sun, 13 Sep 2015 23:07:16 +0000 (23:07 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Sun, 13 Sep 2015 23:07:16 +0000 (23:07 +0000)
dulwich/client.py

index f8132542901e0b37bff151437ea06dc66eed66fc..5695b6e3992bc029f3246fc94f1e2e6ff7735d41 100644 (file)
@@ -712,7 +712,6 @@ class SubprocessGitClient(TraditionalGitClient):
             raise TypeError(path)
         if type(path) is not bytes:
             raise TypeError(path)
-        import subprocess
         if self.git_command is None:
             git_command = find_git_command()
         argv = git_command + [service.decode('ascii'), path]
@@ -855,7 +854,6 @@ class SubprocessSSHVendor(SSHVendor):
             not all([isinstance(b, bytes) for b in command])):
             raise TypeError(command)
 
-        import subprocess
         #FIXME: This has no way to deal with passwords..
         args = ['ssh', '-x']
         if port is not None: