Make it easier to emit deprecation warnings using our modern classes.

Review Request #10777 — Created Nov. 2, 2019 and submitted

Information

Review Board
release-4.0.x
ad5e055...

Reviewers

This adds a convenience function to
BaseRemovedInReviewBoardVersionWarning that wraps warnings.warn(),
passing in the owning class and a default stack level. This massively
simplifies the process of emitting a warning, and is one fewer import
and two fewer parameters for files.

Unit tests pass.

Verified the output of warnings manually.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-4.0.x (7f6a529)
Loading...