switch to oslo_serialization
oslo.serialization 1.2.0 has moved its namespace from old oslo.serialization to oslo_serialization, the old import style can still work, but will not be supported in next release cycle. Let's sync it. Change-Id: I736ac975c50b2550548fde054c7840960435a698
This commit is contained in:
parent
ce34a4eae0
commit
1ff93a221e
@ -15,9 +15,9 @@
|
|||||||
"""Rest alarm notifier."""
|
"""Rest alarm notifier."""
|
||||||
|
|
||||||
import eventlet
|
import eventlet
|
||||||
from oslo.serialization import jsonutils
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_context import context
|
from oslo_context import context
|
||||||
|
from oslo_serialization import jsonutils
|
||||||
import requests
|
import requests
|
||||||
import six.moves.urllib.parse as urlparse
|
import six.moves.urllib.parse as urlparse
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import oslo.messaging
|
import oslo.messaging
|
||||||
from oslo.serialization import jsonutils
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_context import context
|
from oslo_context import context
|
||||||
|
from oslo_serialization import jsonutils
|
||||||
|
|
||||||
DEFAULT_URL = "__default__"
|
DEFAULT_URL = "__default__"
|
||||||
TRANSPORTS = {}
|
TRANSPORTS = {}
|
||||||
|
@ -20,8 +20,8 @@ import os
|
|||||||
|
|
||||||
from oslo.db import exception as dbexc
|
from oslo.db import exception as dbexc
|
||||||
from oslo.db.sqlalchemy import session as db_session
|
from oslo.db.sqlalchemy import session as db_session
|
||||||
from oslo.serialization import jsonutils
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_serialization import jsonutils
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
import migrate
|
import migrate
|
||||||
from oslo.serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
from oslo.serialization import jsonutils
|
|
||||||
from oslo_config import fixture as fixture_config
|
from oslo_config import fixture as fixture_config
|
||||||
from oslo_context import context
|
from oslo_context import context
|
||||||
|
from oslo_serialization import jsonutils
|
||||||
from oslotest import mockpatch
|
from oslotest import mockpatch
|
||||||
import requests
|
import requests
|
||||||
import six.moves.urllib.parse as urlparse
|
import six.moves.urllib.parse as urlparse
|
||||||
|
@ -19,7 +19,7 @@ import uuid
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
import oslo.messaging.conffixture
|
import oslo.messaging.conffixture
|
||||||
from oslo.serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
import six
|
import six
|
||||||
from six import moves
|
from six import moves
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
import base64
|
import base64
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from oslo.serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
import webtest.app
|
import webtest.app
|
||||||
|
|
||||||
from ceilometer.publisher import utils
|
from ceilometer.publisher import utils
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
"""Tests for ceilometer/publisher/utils.py
|
"""Tests for ceilometer/publisher/utils.py
|
||||||
"""
|
"""
|
||||||
from oslo.serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from oslotest import base
|
from oslotest import base
|
||||||
|
|
||||||
from ceilometer.publisher import utils
|
from ceilometer.publisher import utils
|
||||||
|
Loading…
Reference in New Issue
Block a user