Do some code housekeeping.

Review Request #12084 — Created Feb. 24, 2022 and discarded — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

This change does a whole bunch of small cleanups:

  • Fix up a bunch of issues with indentation, wrapping, and blank lines.
  • Remove a lot of dead code.
  • Always use cls as the bound variable for class methods.
  • Add in a few checks and assignments to prevent potentially unbound
    variable accesses in pathological cases.

Ran unit tests.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Do some code housekeeping.
This change does a whole bunch of small cleanups: - Fix up a bunch of issues with indentation, wrapping, and blank lines. - Remove a lot of dead code. - Always use `cls` as the bound variable for class methods. - Add in a few checks and assignments to prevent potentially unbound variable accesses in pathological cases. Testing Done: Ran unit tests.
0db34d73adfeb0c6a2f4e024965f07082dadacca David Trowbridge
This diff has been split across 3 pages: < 1 2 3
reviewboard/webapi/resources/review_request.py
reviewboard/webapi/resources/review_request_draft.py
reviewboard/webapi/resources/user_file_attachment.py
reviewboard/webapi/tests/mixins.py
reviewboard/webapi/tests/test_base.py
reviewboard/webapi/tests/test_default_reviewer.py
reviewboard/webapi/tests/test_diffcommit.py
reviewboard/webapi/tests/test_repository.py
reviewboard/webapi/tests/test_repository_branches.py
reviewboard/webapi/tests/test_review_comment.py
reviewboard/webapi/tests/test_review_general_comment.py
reviewboard/webapi/tests/test_review_reply_diff_comment.py
reviewboard/webapi/tests/test_review_reply_general_comment.py
reviewboard/webapi/tests/test_review_reply_screenshot_comment.py
reviewboard/webapi/tests/test_review_request.py
reviewboard/webapi/tests/test_review_screenshot_comment.py
reviewboard/webapi/tests/test_screenshot_draft.py
This diff has been split across 3 pages: < 1 2 3
Loading...