summaryrefslogtreecommitdiff
path: root/paramiko/pkey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-09 22:55:48 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-09 23:26:00 -0500
commit78abb0e542ae5f74b30e5e2aa15a04a815bc55ae (patch)
tree82ba70b54e6c598ada435c4779d1450f034caf80 /paramiko/pkey.py
parent9e83ca9d8acb5e9d41d45d46a0339e2f633e2dea (diff)
downloadparamiko-78abb0e542ae5f74b30e5e2aa15a04a815bc55ae.tar.gz
string_types -> str
Diffstat (limited to 'paramiko/pkey.py')
-rw-r--r--paramiko/pkey.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index 254f8086..92dc32ff 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -37,7 +37,7 @@ from cryptography.hazmat.primitives.ciphers import algorithms, modes, Cipher
from paramiko import util
from paramiko.util import u, b
from paramiko.common import o600
-from paramiko.py3compat import encodebytes, decodebytes, string_types
+from paramiko.py3compat import encodebytes, decodebytes
from paramiko.ssh_exception import SSHException, PasswordRequiredException
from paramiko.message import Message
@@ -603,9 +603,9 @@ class PKey(object):
# but eg ECDSA is a 1:N mapping.
key_types = key_type
cert_types = cert_type
- if isinstance(key_type, string_types):
+ if isinstance(key_type, str):
key_types = [key_types]
- if isinstance(cert_types, string_types):
+ if isinstance(cert_types, str):
cert_types = [cert_types]
# Can't do much with no message, that should've been handled elsewhere
if msg is None: