]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Replace 'import json' with oslo_serialization
authorKevin Benton <blak111@gmail.com>
Tue, 11 Aug 2015 13:01:25 +0000 (06:01 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 11 Aug 2015 13:05:37 +0000 (06:05 -0700)
Replace remaining occurences of 'import json' with
'from oslo_serialization import jsonutils as json'
so pylint doesn't complain every time someone happens
to make a change to one of the modules that still
uses it.

Change-Id: Ife9f0fc54ad36887bdb939028f8903be16e590d6

13 files changed:
bin/neutron-rootwrap-xen-dom0
neutron/tests/tempest/common/glance_http.py
neutron/tests/tempest/services/identity/v2/json/identity_client.py
neutron/tests/tempest/services/identity/v2/json/token_client.py
neutron/tests/tempest/services/identity/v3/json/credentials_client.py
neutron/tests/tempest/services/identity/v3/json/endpoints_client.py
neutron/tests/tempest/services/identity/v3/json/identity_client.py
neutron/tests/tempest/services/identity/v3/json/policy_client.py
neutron/tests/tempest/services/identity/v3/json/region_client.py
neutron/tests/tempest/services/identity/v3/json/service_client.py
neutron/tests/tempest/services/identity/v3/json/token_client.py
neutron/tests/tempest/services/network/json/network_client.py
neutron/tests/tempest/test.py

index 8e92d33fed1ed7e2215dcf475f326fcf2352049f..b4e2e31b5cfcb495fc9702589923b2455aeaaf6e 100755 (executable)
@@ -24,7 +24,8 @@ responsible determining whether a command is safe to execute.
 from __future__ import print_function
 
 from six.moves import configparser as ConfigParser
-import json
+from oslo_serialization import jsonutils as json
+
 import os
 import select
 import sys
index 0a6f985e7c640dfd209c9b18e0b68e5010e0ac70..3d8c8aaf8c34b82227ceefd87fb7554f844df703 100644 (file)
@@ -17,7 +17,6 @@
 
 import copy
 import hashlib
-import json
 import posixpath
 import re
 import socket
@@ -28,6 +27,7 @@ import urlparse
 
 import OpenSSL
 from oslo_log import log as logging
+from oslo_serialization import jsonutils as json
 from six import moves
 from six.moves import http_client as httplib
 from tempest_lib import exceptions as lib_exc
index 7efda1febdf19ae7fc54439a440e54f043017ede..46e8f8781ab758b8bc02f13629ba6c6db8ab21f3 100644 (file)
@@ -10,7 +10,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
+from oslo_serialization import jsonutils as json
 from tempest_lib import exceptions as lib_exc
 
 from neutron.tests.tempest.common import service_client
index 51d9db02bd2cb694434b46cfe2f08c27c9da15a7..e8b33ea80071c174a256b7a6de56514f91c8641e 100644 (file)
@@ -12,7 +12,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
+from oslo_serialization import jsonutils as json
 from tempest_lib.common import rest_client
 from tempest_lib import exceptions as lib_exc
 
index 4300c0fc7dbdb9e1d5921d93de03f6d9ba2ea0ab..07e230ac49cd6a0e5127f7f9328af082636937eb 100644 (file)
@@ -13,7 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
+from oslo_serialization import jsonutils as json
 
 from neutron.tests.tempest.common import service_client
 
index b60dd260bfd5d655ab946ff506324b3db79b9d3e..27ac3e54d039d0a076d39db7f19b0e3bd87b5f31 100644 (file)
@@ -13,7 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
+from oslo_serialization import jsonutils as json
 
 from neutron.tests.tempest.common import service_client
 
index a7db46a57858da536b5323552b169f36175673e5..a090acf9a03b71fba0ba7e5eca0ea25866416d71 100644 (file)
@@ -13,8 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
-
+from oslo_serialization import jsonutils as json
 from six.moves.urllib import parse
 
 from neutron.tests.tempest.common import service_client
index 2e44185ddb7877c8adc77a36bcf6e012f37889b6..2d247afec84d9b2b7e79081db698710e138d25cf 100644 (file)
@@ -13,7 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
+from oslo_serialization import jsonutils as json
 
 from neutron.tests.tempest.common import service_client
 
index d2fa53b7561417d4997e415984ba44641cb95f6e..0effae881d586acc7bcacf2a8a6d819ea12fde75 100644 (file)
@@ -13,8 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
-
+from oslo_serialization import jsonutils as json
 from six.moves.urllib import parse
 
 from neutron.tests.tempest.common import service_client
index 529693e34b18f4c05857a7ab41958beea1cb7dd9..75a5cf8150e616d184b6fd68d97a53011b57572a 100644 (file)
@@ -13,7 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
+from oslo_serialization import jsonutils as json
 
 from neutron.tests.tempest.common import service_client
 
index c60b24c56f9b4d7992b2ae5b9a1df63d1cdae9bb..77ecf8423e663cd8760ffd9d761e8bb0c4e2b1b4 100644 (file)
@@ -12,7 +12,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
+from oslo_serialization import jsonutils as json
 from tempest_lib.common import rest_client
 from tempest_lib import exceptions as lib_exc
 
index 4958bc51c0303484c002627846a1f1c0420dfc7e..4badd9623465d03318226483864287885dddd841 100644 (file)
@@ -10,9 +10,9 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import json
 import time
 
+from oslo_serialization import jsonutils as json
 from six.moves.urllib import parse
 from tempest_lib.common.utils import misc
 from tempest_lib import exceptions as lib_exc
index d95174bd8866f37dff2b255d29dc61cde2c289be..3abf826b2c3afbb640791e4404f07a8a931ae347 100644 (file)
@@ -15,7 +15,6 @@
 
 import atexit
 import functools
-import json
 import os
 import re
 import sys
@@ -24,6 +23,7 @@ import uuid
 
 import fixtures
 from oslo_log import log as logging
+from oslo_serialization import jsonutils as json
 from oslo_utils import importutils
 import six
 from six.moves.urllib import parse