diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-12 08:52:23 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-12 08:55:06 +0200 |
| commit | 48ed73fb74213ba9ae2fdcc42d18a5a3e7737fe0 (patch) | |
| tree | 5cf619600c1e8462f19b340e83ab733beef377bf /django/utils/dateformat.py | |
| parent | 16bdb6b7baf884fad6885db18be78a69a55317a5 (diff) | |
[3.0.x] Fixed E128, E741 flake8 warnings.
Backport of 0668164b4ac93a5be79f5b87fae83c657124d9ab from master.
Diffstat (limited to 'django/utils/dateformat.py')
| -rw-r--r-- | django/utils/dateformat.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 29893fe6b9..51d5853ece 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -123,7 +123,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'. @@ -237,7 +237,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): @@ -254,7 +254,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()] |
