summaryrefslogtreecommitdiff
path: root/trove/common/utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-04-19 23:17:43 +0000
committerGerrit Code Review <review@openstack.org>2016-04-19 23:17:43 +0000
commit7261de0d242f3a752091bb2e69c1c5161dd945a2 (patch)
treea6a06e402080247ee435ee595862b0fe8b299c87 /trove/common/utils.py
parentaa9cc79b784244c0ddc8f61e2e02118b9b812322 (diff)
parentfe52d5549ead0cbaf275677d38b0b3d590e8a455 (diff)
downloadtrove-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.py4
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)))