Update deprecation warning objects for Djblets 3.0 and 4.0.

Review Request #12311 — Created May 31, 2022 and submitted

Information

Djblets
release-3.x

Reviewers

This introduces RemovedInDjblets40Warning and
RemovedInDjblets50Warning and sets RemovedInNextDjbletsVersionWarning
to RemovedInDjblets40Warning.

RemovedInDjblets20Warning has been removed, as it's no longer needed.

BaseRemovedInDjbletsVersionWarning has been updated to include a new
warn() method, making it easier to emit deprecation warnings.

Unit tests pass.

Began using RemovedInDjblets40Warning in new code.

Summary ID
Update deprecation warning objects for Djblets 3.0 and 4.0.
This introduces `RemovedInDjblets40Warning` and `RemovedInDjblets50Warning` and sets `RemovedInNextDjbletsVersionWarning` to `RemovedInDjblets40Warning`. `RemovedInDjblets20Warning` has been removed, as it's no longer needed. `BaseRemovedInDjbletsVersionWarning` has been updated to include a new `warn()` method, making it easier to emit deprecation warnings.
65c2f629f3e46700a1fa87f45d1c8e02d428320b
Description From Last Updated

F401 'djblets.deprecation.RemovedInDjblets40Warning' imported but unused

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.x (3340414)