summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-10-16 23:59:26 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-10-18 17:07:20 -0700
commit13c9a174ce9dc7ae7cc6c9bde9f6ce45aec96cf7 (patch)
tree6948bb7fd0dd12021ced83aabd351b3e9a673c91
parent7f4470d6e458acbfa9b5351057a391fc911b5301 (diff)
validate_non_string_sequence: use six.string_types
Change-Id: I7248d97a55974091daf20f0fba4b612101a0e4c5 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
-rw-r--r--yardstick/common/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/common/utils.py b/yardstick/common/utils.py
index 6ac99a5a9..51f6e1360 100644
--- a/yardstick/common/utils.py
+++ b/yardstick/common/utils.py
@@ -350,7 +350,7 @@ def config_to_dict(config):
def validate_non_string_sequence(value, default=None, raise_exc=None):
- if isinstance(value, collections.Sequence) and not isinstance(value, str):
+ if isinstance(value, collections.Sequence) and not isinstance(value, six.string_types):
return value
if raise_exc:
raise raise_exc