Revert "Replace basestring with six.string_types"
This reverts commit 5149040872
.
Change-Id: I36e04cb0704607749319f0cf449122c08cd793f9
This commit is contained in:
parent
5149040872
commit
d1003f4f65
|
@ -32,7 +32,6 @@ except ImportError:
|
|||
import simplejson as json
|
||||
import logging
|
||||
import re
|
||||
import six
|
||||
import sys
|
||||
import time
|
||||
|
||||
|
@ -376,7 +375,7 @@ ALLOWED_NETWORK_CMDS = {
|
|||
def network_config(session, args):
|
||||
"""network config functions"""
|
||||
cmd = pluginlib.exists(args, 'cmd')
|
||||
if not isinstance(cmd, six.string_types):
|
||||
if not isinstance(cmd, basestring):
|
||||
msg = "invalid command '%s'" % str(cmd)
|
||||
raise pluginlib.PluginError(msg)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue