diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-10-16 23:59:26 -0700 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-10-17 00:29:00 -0700 |
commit | fbca63b2e683173ebb9e61422d91e24c8664a675 (patch) | |
tree | 6ae4edb516399e3653aca4741a2e993a7e2fe2a6 | |
parent | 0c0ba9bff5e54d02b924fe1bfe30c68190a24956 (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.py | 2 |
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 |