flake8
-
djblets/extensions/middleware.py (Diff revision 1) Show all issues
Review Request #11961 — Created Jan. 21, 2022 and submitted
With Djblets 3.x using only Django 3.2+, we no longer need to deal with
old-style middleware or theMIDDLEWARE_CLASSES
setting. This change
updates things to always use the new style.
Ran unit tests.
Summary | ID |
---|---|
ea7313b1e56df9c3bd332bd1f1388980025b6782 |
Description | From | Last Updated |
---|---|---|
E501 line too long (82 > 79 characters) |
![]() |
|
Might as well make this one statement now. |
|
|
Type/description needs to be indented. |
|
|
This can be: middleware = list(reversed(self._middleware_classes)) |
|
|
Summary should be on the """ line. |
|
|
No need for parens here. |
|
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+232 -652) |
djblets/extensions/middleware.py (Diff revision 2) |
---|
This can be:
middleware = list(reversed(self._middleware_classes))
djblets/extensions/middleware.py (Diff revision 2) |
---|
Out of curiosity, why not just keep this? Seems it was useful for keeping the other functions simple.
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+228 -654) |