types.StringTypes does not exist in Python 3. We can use
six.string_types, instead.
Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
import types
+import six
+
import ovs.util
commands = {}
-strtypes = types.StringTypes
+strtypes = six.string_types
class _UnixctlCommand(object):
# limitations under the License.
import os
-import types
+
+import six
import ovs.jsonrpc
import ovs.stream
vlog = ovs.vlog.Vlog("unixctl_client")
-strtypes = types.StringTypes
+strtypes = six.string_types
class UnixctlClient(object):
import copy
import errno
import os
-import types
import six
from six.moves import range
Message = ovs.jsonrpc.Message
vlog = ovs.vlog.Vlog("unixctl_server")
-strtypes = types.StringTypes
+strtypes = six.string_types
class UnixctlConnection(object):