summaryrefslogtreecommitdiff
path: root/pygerrit/ssh.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygerrit/ssh.py')
-rw-r--r--pygerrit/ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygerrit/ssh.py b/pygerrit/ssh.py
index 3ffa97b..2955094 100644
--- a/pygerrit/ssh.py
+++ b/pygerrit/ssh.py
@@ -89,7 +89,7 @@ class GerritSSHClient(SSHClient):
data = config.lookup(self.hostname)
if not data:
raise GerritError("No ssh config for host %s" % self.hostname)
- if not 'hostname' in data or not 'port' in data or not 'user' in data:
+ if 'hostname' not in data or 'port' not in data or 'user' not in data:
raise GerritError("Missing configuration data in %s" % configfile)
self.hostname = data['hostname']
self.username = data['user']