Revert "serializer: deprecate RequestContextSerializer"

This reverts commit 196980dace.

There is a bug in debtcollector with using the remove decorator on
abstract classes, which RequestContextSerializer is.
https://bugs.launchpad.net/debtcollector/+bug/1520397

The addition of debtcollector to requirements.txt is left in place
because it is used elsewhere in the code by now.

Partial-Bug: #1524041
Change-Id: Ic3985707e941f7a7a1e039e702ce9219a3c741df
This commit is contained in:
Jim Rollenhagen 2015-12-08 10:48:35 -08:00
parent 52ccff7cbc
commit 576e6ccfb2

View File

@ -19,7 +19,6 @@ __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
@ -64,7 +63,6 @@ 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):