aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-10-17 18:04:37 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-17 18:04:37 +0000
commitf6bc49db9b164b8e8c9bba99b1d513edc2cc610f (patch)
treeedcdea06eb41fa4564d3f082ebf7c4133d05512c
parentb90dd796629bcc82cea5e10eb910f70deb3e2bf0 (diff)
parentfbca63b2e683173ebb9e61422d91e24c8664a675 (diff)
Merge "validate_non_string_sequence: use six.string_types"
-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