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/admin/siteconfig.py
reviewboard/attachments/forms.py
reviewboard/avatars/services.py
reviewboard/datagrids/columns.py
reviewboard/diffviewer/chunk_generator.py
reviewboard/diffviewer/processors.py
reviewboard/diffviewer/models/filediff.py
reviewboard/diffviewer/tests/test_raw_diff_chunk_generator.py
reviewboard/hostingsvcs/bugzilla.py
reviewboard/hostingsvcs/github.py
reviewboard/hostingsvcs/hook_utils.py
reviewboard/hostingsvcs/jira.py
reviewboard/hostingsvcs/rbgateway.py
reviewboard/hostingsvcs/testing/testcases.py
reviewboard/hostingsvcs/tests/test_api_paginator.py
reviewboard/hostingsvcs/tests/test_rbgateway.py
reviewboard/integrations/base.py
reviewboard/notifications/email/__init__.py
reviewboard/notifications/tests/test_email_sending.py
reviewboard/notifications/tests/test_webhooks.py
This diff has been split across 3 pages: 1 2 3 >
Loading...