diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2015-10-30 11:43:43 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2015-10-30 11:43:43 -0700 |
commit | ae1cb8fe2cf39fea0ee441dac037931c5e4bc23e (patch) | |
tree | 3c452d975bac8f6f69a1339b493acba7cc941252 | |
parent | fa631508e4e736f2cc5dc61c3c5c2c259ea4422f (diff) |
Whitespace trims
-rw-r--r-- | paramiko/transport.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py index ef57108a..e0b7c296 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -100,8 +100,8 @@ class Transport (threading.Thread, ClosingContextManager): 'hmac-sha1') _preferred_keys = ('ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256') _preferred_kex = ('diffie-hellman-group1-sha1', - 'diffie-hellman-group14-sha1', - 'diffie-hellman-group-exchange-sha1' , + 'diffie-hellman-group14-sha1', + 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group-exchange-sha256') _preferred_compression = ('none',) @@ -1772,7 +1772,7 @@ class Transport (threading.Thread, ClosingContextManager): kex_mp = [k for k in self._preferred_kex if k.startswith(mp_required_prefix)] if (self._modulus_pack is None) and (len(kex_mp) > 0): # can't do group-exchange if we don't have a pack of potential primes - pkex = [k for k in self.get_security_options().kex + pkex = [k for k in self.get_security_options().kex if not k.startswith(mp_required_prefix)] self.get_security_options().kex = pkex available_server_keys = list(filter(list(self.server_key_dict.keys()).__contains__, |