Merge "Update json module to jsonutils"

This commit is contained in:
Zuul 2019-02-28 00:55:32 +00:00 committed by Gerrit Code Review
commit f5c2c237c1
1 changed files with 3 additions and 2 deletions

View File

@ -14,10 +14,11 @@
#
import copy
import json
import mock
import sys
from oslo_serialization import jsonutils
from keystoneauth1 import fixture
import requests
import six
@ -242,7 +243,7 @@ class FakeResponse(requests.Response):
self.status_code = status_code
self.headers.update(headers)
self._content = json.dumps(data)
self._content = jsonutils.dumps(data)
if not isinstance(self._content, six.binary_type):
self._content = self._content.encode()