diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-10-10 17:10:22 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-10-10 17:10:22 -0700 |
commit | 9019b25497c2b143e06da6a393e24b67bfc848f0 (patch) | |
tree | 35bf9af38e9e6a6bd888119c5c03ead36192ce76 | |
parent | c58a5bd649ebeb0439004daf2cc9f442edeb43e7 (diff) |
Use set literals
-rw-r--r-- | paramiko/client.py | 2 | ||||
-rw-r--r-- | tests/test_util.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/client.py b/paramiko/client.py index e5931d09..2808d228 100644 --- a/paramiko/client.py +++ b/paramiko/client.py @@ -571,7 +571,7 @@ class SSHClient (ClosingContextManager): saved_exception = None two_factor = False allowed_types = set() - two_factor_types = set(['keyboard-interactive', 'password']) + two_factor_types = {'keyboard-interactive', 'password'} # If GSS-API support and GSS-PI Key Exchange was performed, we attempt # authentication with gssapi-keyex. diff --git a/tests/test_util.py b/tests/test_util.py index 633c3345..dfb4b466 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -366,7 +366,7 @@ IdentityFile something_%l_using_fqdn def test_get_hostnames(self): f = StringIO(test_config_file) config = paramiko.util.parse_ssh_config(f) - self.assertEqual(config.get_hostnames(), set(['*', '*.example.com', 'spoo.example.com'])) + self.assertEqual(config.get_hostnames(), {'*', '*.example.com', 'spoo.example.com'}) def test_quoted_host_names(self): test_config_file = """\ |