summaryrefslogtreecommitdiff
path: root/pygerrit/ssh.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-24 11:50:41 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-24 11:50:58 +0900
commit8ad8009d6fbb20b3a25ef00326b276391b4e3f13 (patch)
tree3e66a8c8f715a67c0361c52cde2bfda1535b28dd /pygerrit/ssh.py
parent9930c04fa5045516da8b9a5e82e2f26cfff7f2a0 (diff)
downloadpygerrit-8ad8009d6fbb20b3a25ef00326b276391b4e3f13.tar.gz
Revert "Basic thread-safeness in the SSH client"
This reverts commit 42272ffdb1541cf96f13466446e07c24d8e7febb. Change-Id: Ie00d75579231873db98bc3a84caef408152f3d81
Diffstat (limited to 'pygerrit/ssh.py')
-rw-r--r--pygerrit/ssh.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/pygerrit/ssh.py b/pygerrit/ssh.py
index fe0af5a..712613c 100644
--- a/pygerrit/ssh.py
+++ b/pygerrit/ssh.py
@@ -26,7 +26,6 @@ THE SOFTWARE.
from os.path import abspath, expanduser, isfile
import re
-from threading import Lock
from pygerrit.error import GerritError
@@ -61,7 +60,6 @@ class GerritSSHClient(SSHClient):
""" Initialise and connect to SSH. """
super(GerritSSHClient, self).__init__()
self.load_system_host_keys()
- self.lock = Lock()
self.remote_version = None
configfile = expanduser("~/.ssh/config")
@@ -122,11 +120,8 @@ class GerritSSHClient(SSHClient):
gerrit_command += command
else:
gerrit_command.append(command)
- self.lock.acquire()
try:
stdin, stdout, stderr = self.exec_command(" ".join(gerrit_command))
except SSHException, err:
raise GerritError("Command execution error: %s" % err)
- finally:
- self.lock.release()
return GerritSSHCommandResult(stdin, stdout, stderr)