diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /django/utils/dateformat.py | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff) | |
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'django/utils/dateformat.py')
| -rw-r--r-- | django/utils/dateformat.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 4a158432d9..94a1e8595a 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -144,10 +144,10 @@ class TimeFormat(Formatter): def P(self): """ - Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left off - if they're zero and the strings 'midnight' and 'noon' if appropriate. - Examples: '1 a.m.', '1:30 p.m.', 'midnight', 'noon', '12:30 p.m.' - Proprietary extension. + Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left + off if they're zero and the strings 'midnight' and 'noon' if + appropriate. Examples: '1 a.m.', '1:30 p.m.', 'midnight', 'noon', + '12:30 p.m.' Proprietary extension. """ if self.data.minute == 0 and self.data.hour == 0: return _("midnight") @@ -216,7 +216,10 @@ class DateFormat(TimeFormat): return WEEKDAYS_ABBR[self.data.weekday()] def E(self): - "Alternative month names as required by some locales. Proprietary extension." + """ + Alternative month names as required by some locales. Proprietary + extension. + """ return MONTHS_ALT[self.data.month] def F(self): |
