diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-04-19 23:17:43 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-04-19 23:17:43 +0000 |
commit | 7261de0d242f3a752091bb2e69c1c5161dd945a2 (patch) | |
tree | a6a06e402080247ee435ee595862b0fe8b299c87 /trove/common/utils.py | |
parent | aa9cc79b784244c0ddc8f61e2e02118b9b812322 (diff) | |
parent | fe52d5549ead0cbaf275677d38b0b3d590e8a455 (diff) | |
download | trove-7261de0d242f3a752091bb2e69c1c5161dd945a2.tar.gz |
Merge "Port more common unit tests to Python 3"
Diffstat (limited to 'trove/common/utils.py')
-rw-r--r-- | trove/common/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trove/common/utils.py b/trove/common/utils.py index e4cc5885..9531a3f4 100644 --- a/trove/common/utils.py +++ b/trove/common/utils.py @@ -20,7 +20,6 @@ import inspect import os import shutil import time -import types import uuid from eventlet.timeout import Timeout @@ -32,6 +31,7 @@ from oslo_utils import importutils from oslo_utils import strutils from oslo_utils import timeutils from passlib import utils as passlib_utils +import six import six.moves.urllib.parse as urlparse from trove.common import cfg @@ -327,4 +327,4 @@ def is_collection(item): """Return True is a given item is an iterable collection, but not a string. """ return (isinstance(item, collections.Iterable) and - not isinstance(item, types.StringTypes)) + not isinstance(item, (bytes, six.text_type))) |