Do some code housekeeping.

Review Request #12110 — Created March 7, 2022 and submitted — 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 2 (Latest)

orig
1
2

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.
89108d90b22d12748fb16e8546df72fe254219f5 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...