Remove six
Python 2 is no longer supported, thus usage of six can be removed.
Change-Id: I1a44b65768cb862e10d013801dd47cb0510b2d07
diff --git a/heat_tempest_plugin/common/remote_client.py b/heat_tempest_plugin/common/remote_client.py
index f23622b..aa652be 100644
--- a/heat_tempest_plugin/common/remote_client.py
+++ b/heat_tempest_plugin/common/remote_client.py
@@ -15,9 +15,9 @@
import socket
import time
+import io
from oslo_log import log as logging
import paramiko
-import six
from heat_tempest_plugin.common import exceptions
@@ -31,9 +31,9 @@
self.host = host
self.username = username
self.password = password
- if isinstance(pkey, six.string_types):
+ if isinstance(pkey, str):
pkey = paramiko.RSAKey.from_private_key(
- six.moves.cStringIO(str(pkey)))
+ io.cStringIO(str(pkey)))
self.pkey = pkey
self.look_for_keys = look_for_keys
self.key_filename = key_filename
@@ -151,7 +151,7 @@
network = self.conf.network_for_ssh
ip_version = self.conf.ip_version_for_ssh
ssh_channel_timeout = self.conf.ssh_channel_timeout
- if isinstance(server, six.string_types):
+ if isinstance(server, str):
ip_address = server
else:
addresses = server['addresses'][network]