Skip to content

Commit

Permalink
python: Drop use of types.StringTypes.
Browse files Browse the repository at this point in the history
types.StringTypes does not exist in Python 3.  We can use
six.string_types, instead.

Signed-off-by: Russell Bryant <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
russellb committed Feb 2, 2016
1 parent 25f599f commit 1ccbf95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion python/ovs/unixctl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@

import types

import six

import ovs.util

commands = {}
strtypes = types.StringTypes
strtypes = six.string_types


class _UnixctlCommand(object):
Expand Down
5 changes: 3 additions & 2 deletions python/ovs/unixctl/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
# limitations under the License.

import os
import types

import six

import ovs.jsonrpc
import ovs.stream
import ovs.util


vlog = ovs.vlog.Vlog("unixctl_client")
strtypes = types.StringTypes
strtypes = six.string_types


class UnixctlClient(object):
Expand Down
3 changes: 1 addition & 2 deletions python/ovs/unixctl/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import copy
import errno
import os
import types

import six
from six.moves import range
Expand All @@ -30,7 +29,7 @@

Message = ovs.jsonrpc.Message
vlog = ovs.vlog.Vlog("unixctl_server")
strtypes = types.StringTypes
strtypes = six.string_types


class UnixctlConnection(object):
Expand Down

0 comments on commit 1ccbf95

Please sign in to comment.