git.samba.org
/
jelmer
/
dulwich.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0563a51
)
Only import subprocess once.
author
Jelmer Vernooij
<jelmer@jelmer.uk>
Sun, 13 Sep 2015 23:07:16 +0000
(23:07 +0000)
committer
Jelmer Vernooij
<jelmer@jelmer.uk>
Sun, 13 Sep 2015 23:07:16 +0000
(23:07 +0000)
dulwich/client.py
patch
|
blob
|
history
diff --git
a/dulwich/client.py
b/dulwich/client.py
index f8132542901e0b37bff151437ea06dc66eed66fc..5695b6e3992bc029f3246fc94f1e2e6ff7735d41 100644
(file)
--- a/
dulwich/client.py
+++ b/
dulwich/client.py
@@
-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: