summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/client.py2
-rw-r--r--tests/test_util.py2
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 = """\