Do some code housecleaning.
Review Request #12079 — Created Feb. 23, 2022 and submitted — Latest diff uploaded
This change just makes some relatively mechanical cleanups:
- Fix iteration of TEMPLATES default to not try to iterate over
None
- Remove or add blank lines and spaces to conform to python style
standards. - Remove some unused variable definitions.
- Always use
cls
as the bound variable for classmethods. - Fix a place where we were catching a
URLError
but then accessing
data that's only available onHTTPError
.
Ran unit tests.
Diff Revision 1 (Latest)
Commits
Files
djblets/cache/serials.py |
---|
djblets/db/tests/test_relation_counter_field.py |
---|
djblets/extensions/manager.py |
---|
djblets/forms/fields.py |
---|
djblets/log/__init__.py |
---|
djblets/log/middleware.py |
---|
djblets/recaptcha/mixins.py |
---|
djblets/registries/errors.py |
---|
djblets/siteconfig/models.py |
---|
djblets/template/tests/test_caches.py |
---|
djblets/util/humanize.py |
---|
djblets/util/templatetags/djblets_images.py |
---|
djblets/util/templatetags/djblets_utils.py |
---|
djblets/webapi/errors.py |
---|
djblets/webapi/models.py |
---|
djblets/webapi/oauth2_scopes.py |
---|
djblets/webapi/responses.py |
---|