serializer: deprecate RequestContextSerializer
We plan to remove it to avoid dependency on oslo.context. Change-Id: I21d76abf1c30b9e89cb8a6c20d1c0cc79cd83a3f
This commit is contained in:
parent
47a906aff3
commit
196980dace
@ -19,6 +19,7 @@ __all__ = ['Serializer', 'NoOpSerializer', 'JsonPayloadSerializer',
|
|||||||
|
|
||||||
import abc
|
import abc
|
||||||
|
|
||||||
|
from debtcollector import removals
|
||||||
from oslo_context import context as common_context
|
from oslo_context import context as common_context
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
import six
|
import six
|
||||||
@ -63,6 +64,7 @@ class Serializer(object):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
@removals.remove(version="2.9", removal_version="3.0")
|
||||||
class RequestContextSerializer(Serializer):
|
class RequestContextSerializer(Serializer):
|
||||||
|
|
||||||
def __init__(self, base):
|
def __init__(self, base):
|
||||||
|
@ -13,6 +13,7 @@ oslo.serialization>=1.10.0 # Apache-2.0
|
|||||||
oslo.service>=0.12.0 # Apache-2.0
|
oslo.service>=0.12.0 # Apache-2.0
|
||||||
oslo.i18n>=1.5.0 # Apache-2.0
|
oslo.i18n>=1.5.0 # Apache-2.0
|
||||||
stevedore>=1.5.0 # Apache-2.0
|
stevedore>=1.5.0 # Apache-2.0
|
||||||
|
debtcollector>=0.3.0 # Apache-2.0
|
||||||
|
|
||||||
# for jsonutils
|
# for jsonutils
|
||||||
six>=1.9.0
|
six>=1.9.0
|
||||||
|
Loading…
Reference in New Issue
Block a user