Replace jsonutils by common json package

Should remove oslo.serialization which only use at one test-case.
This change will help project do not depends this package,
and let's use the regular json attribute anyway.

Change-Id: I01af1e1b09fb9866acf54fc7a19aedfaab34a684
This commit is contained in:
Nguyen Van Trung 2017-11-27 10:27:54 +07:00
parent 9f70a04d5c
commit 111630aa07
2 changed files with 1 additions and 3 deletions

View File

@ -17,7 +17,6 @@
import collections
from oslo_log import log as logging
from oslo_serialization import jsonutils
import six
from six.moves import http_client
@ -37,7 +36,7 @@ def _ensure_exception_kwargs_serializable(exc_class_name, kwargs):
constructor.
:returns: a dictionary of serializable keyword arguments.
"""
serializers = [(jsonutils.dumps, _('when converting to JSON')),
serializers = [(json.dumps, _('when converting to JSON')),
(six.text_type, _('when converting to string'))]
exceptions = collections.defaultdict(list)
serializable_kwargs = {}

View File

@ -14,7 +14,6 @@ oslo.context>=2.14.0 # Apache-2.0
oslo.messaging!=5.25.0,>=5.24.2 # Apache-2.0
oslo.concurrency>=3.8.0 # Apache-2.0
oslo.service>=1.10.0 # Apache-2.0
oslo.serialization!=2.19.1,>=1.10.0 # Apache-2.0
oslo.db>=4.24.0 # Apache-2.0
oslo.utils>=3.20.0 # Apache-2.0
oslo.versionedobjects>=1.17.0 # Apache-2.0