diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-12 08:52:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-12 08:52:23 +0200 |
| commit | 0668164b4ac93a5be79f5b87fae83c657124d9ab (patch) | |
| tree | 71c08a5331f99515fbc859484b61d452a045dbb3 /django/utils | |
| parent | e6ec76d2455d0fd57ad766acd3714538b24a8989 (diff) | |
Fixed E128, E741 flake8 warnings.
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/dateformat.py | 6 | ||||
| -rw-r--r-- | django/utils/topological_sort.py | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 7a8c83af09..afd36d79e0 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -122,7 +122,7 @@ class TimeFormat(Formatter): "Minutes; i.e. '00' to '59'" return '%02d' % self.data.minute - def O(self): # NOQA: E743 + def O(self): # NOQA: E743, E741 """ Difference to Greenwich time in hours; e.g. '+0200', '-0430'. @@ -234,7 +234,7 @@ class DateFormat(TimeFormat): "Month, textual, long; e.g. 'January'" return MONTHS[self.data.month] - def I(self): # NOQA: E743 + def I(self): # NOQA: E743, E741 "'1' if Daylight Savings Time, '0' otherwise." try: if self.timezone and self.timezone.dst(self.data): @@ -251,7 +251,7 @@ class DateFormat(TimeFormat): "Day of the month without leading zeros; i.e. '1' to '31'" return self.data.day - def l(self): # NOQA: E743 + def l(self): # NOQA: E743, E741 "Day of the week, textual, long; e.g. 'Friday'" return WEEKDAYS[self.data.weekday()] diff --git a/django/utils/topological_sort.py b/django/utils/topological_sort.py index 3f8ea0f2e4..f7ce0e0d1d 100644 --- a/django/utils/topological_sort.py +++ b/django/utils/topological_sort.py @@ -27,10 +27,10 @@ def topological_sort_as_sets(dependency_graph): todo.items() if node not in current} -def stable_topological_sort(l, dependency_graph): +def stable_topological_sort(nodes, dependency_graph): result = [] for layer in topological_sort_as_sets(dependency_graph): - for node in l: + for node in nodes: if node in layer: result.append(node) return result |
