summaryrefslogtreecommitdiff
path: root/saharaclient/api/base.py
diff options
context:
space:
mode:
authorNgo Quoc Cuong <cuongnq@vn.fujitsu.com>2017-07-13 02:50:53 -0400
committerNgo Quoc Cuong <cuongnq@vn.fujitsu.com>2017-07-18 22:37:08 -0400
commit6b2fa6adb69bae7dabae0cf275315332ffb769bb (patch)
tree0f9d9fcad6fe07ce8699c6d9bb04eb48539bcc0b /saharaclient/api/base.py
parent586a306358c555a042bcb5cfc76715756f370f87 (diff)
downloadpython-saharaclient-6b2fa6adb69bae7dabae0cf275315332ffb769bb.tar.gz
Clone sahara hacking checks to saharaclient
These such rules are: - [S366, S367] Organize your imports according to the ``Import order`` - [S368] Must use a dict comprehension instead of a dict constructor with a sequence of key-value pairs. - [S373] Don't translate logs - [S375] Use jsonutils from oslo_serialization instead of json Change-Id: I909da6772f733e8282a8f304b829aab9b25d6203
Diffstat (limited to 'saharaclient/api/base.py')
-rw-r--r--saharaclient/api/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/saharaclient/api/base.py b/saharaclient/api/base.py
index 38a2848..2d04716 100644
--- a/saharaclient/api/base.py
+++ b/saharaclient/api/base.py
@@ -14,8 +14,8 @@
# limitations under the License.
import copy
-import json
+from oslo_serialization import jsonutils
from six.moves.urllib import parse
from saharaclient._i18n import _
@@ -236,7 +236,7 @@ def get_json(response):
if callable(json_field_or_function):
return response.json()
else:
- return json.loads(response.content)
+ return jsonutils.loads(response.content)
class APIException(Exception):