Replace 'import json' with oslo_serialization

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
This commit is contained in:
Kevin Benton 2015-08-11 06:01:25 -07:00
parent ce32fcc959
commit eef7983d4e
13 changed files with 14 additions and 15 deletions

View File

@ -24,7 +24,8 @@ responsible determining whether a command is safe to execute.
from __future__ import print_function from __future__ import print_function
from six.moves import configparser as ConfigParser from six.moves import configparser as ConfigParser
import json from oslo_serialization import jsonutils as json
import os import os
import select import select
import sys import sys

View File

@ -17,7 +17,6 @@
import copy import copy
import hashlib import hashlib
import json
import posixpath import posixpath
import re import re
import socket import socket
@ -28,6 +27,7 @@ import urlparse
import OpenSSL import OpenSSL
from oslo_log import log as logging from oslo_log import log as logging
from oslo_serialization import jsonutils as json
from six import moves from six import moves
from six.moves import http_client as httplib from six.moves import http_client as httplib
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json from oslo_serialization import jsonutils as json
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
from neutron.tests.tempest.common import service_client from neutron.tests.tempest.common import service_client

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json from oslo_serialization import jsonutils as json
from tempest_lib.common import rest_client from tempest_lib.common import rest_client
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json from oslo_serialization import jsonutils as json
from neutron.tests.tempest.common import service_client from neutron.tests.tempest.common import service_client

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json from oslo_serialization import jsonutils as json
from neutron.tests.tempest.common import service_client from neutron.tests.tempest.common import service_client

View File

@ -13,8 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse from six.moves.urllib import parse
from neutron.tests.tempest.common import service_client from neutron.tests.tempest.common import service_client

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json from oslo_serialization import jsonutils as json
from neutron.tests.tempest.common import service_client from neutron.tests.tempest.common import service_client

View File

@ -13,8 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse from six.moves.urllib import parse
from neutron.tests.tempest.common import service_client from neutron.tests.tempest.common import service_client

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json from oslo_serialization import jsonutils as json
from neutron.tests.tempest.common import service_client from neutron.tests.tempest.common import service_client

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json from oslo_serialization import jsonutils as json
from tempest_lib.common import rest_client from tempest_lib.common import rest_client
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc

View File

@ -10,9 +10,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json
import time import time
from oslo_serialization import jsonutils as json
from six.moves.urllib import parse from six.moves.urllib import parse
from tempest_lib.common.utils import misc from tempest_lib.common.utils import misc
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc

View File

@ -15,7 +15,6 @@
import atexit import atexit
import functools import functools
import json
import os import os
import re import re
import sys import sys
@ -24,6 +23,7 @@ import uuid
import fixtures import fixtures
from oslo_log import log as logging from oslo_log import log as logging
from oslo_serialization import jsonutils as json
from oslo_utils import importutils from oslo_utils import importutils
import six import six
from six.moves.urllib import parse from six.moves.urllib import parse