Add new deprecation warning classes specific to Review Board.
Review Request #10261 — Created Oct. 22, 2018 and submitted — Latest diff uploaded
This introduces a new
reviewboard.deprecation
module, which defines a
base class for deprecation warnings
(BaseRemovedInReviewBoardVersionWarning
), a RB4-specific subclass
(RemovedInReviewBoard40Warning
), and a stable alias representing the
upcoming version (RemovedInNextReviewBoardVersionWarning
).All current uses of
DeprecationWarning
have been updated to use these
instead, and all old deprecation warnings have been given new life
through the remainder of 3.0. In 4.0, the deprecated functionality will
be removed.
Unit tests pass.