From 404bebccac200ba44e50f75ed335dead1278559d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 12 Nov 2015 12:02:56 +0100 Subject: [PATCH] serializer: deprecate RequestContextSerializer The plan is still to remove it to avoid any dependency on oslo.context. Change-Id: I9fc982c89f537b385dda37800fe46b086eb4daf6 --- oslo_messaging/serializer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oslo_messaging/serializer.py b/oslo_messaging/serializer.py index b1761fd83..f9ac6aad3 100644 --- a/oslo_messaging/serializer.py +++ b/oslo_messaging/serializer.py @@ -19,6 +19,7 @@ __all__ = ['Serializer', 'NoOpSerializer', 'JsonPayloadSerializer', import abc +from debtcollector import removals from oslo_context import context as common_context from oslo_serialization import jsonutils import six @@ -63,6 +64,9 @@ class Serializer(object): """ +@removals.removed_class("RequestContextSerializer", + version="4.6", + removal_version="5.0") class RequestContextSerializer(Serializer): def __init__(self, base):