diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2019-11-18 12:50:41 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-11-18 12:50:41 +0100 |
| commit | cbe4d6203ff2d702b63dae52adbe7a50830a5cbe (patch) | |
| tree | 9589ddf6fb272881efc3526d7e2150a9a9a603a4 /django/utils/dateformat.py | |
| parent | 9100c664db5cca7512947e23d588cfcb937a7a92 (diff) | |
Fixed #30989 -- Removed unimplemented B time format.
It's never been documented and has always raised a NotImplementedError.
Diffstat (limited to 'django/utils/dateformat.py')
| -rw-r--r-- | django/utils/dateformat.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 82cb444691..578572d38a 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -21,7 +21,7 @@ from django.utils.regex_helper import _lazy_re_compile from django.utils.timezone import get_default_timezone, is_aware, is_naive from django.utils.translation import gettext as _ -re_formatchars = _lazy_re_compile(r'(?<!\\)([aAbBcdDeEfFgGhHiIjlLmMnNoOPrsStTUuwWyYzZ])') +re_formatchars = _lazy_re_compile(r'(?<!\\)([aAbcdDeEfFgGhHiIjlLmMnNoOPrsStTUuwWyYzZ])') re_escaped = _lazy_re_compile(r'\\(.)') @@ -68,10 +68,6 @@ class TimeFormat(Formatter): return _('PM') return _('AM') - def B(self): - "Swatch Internet time" - raise NotImplementedError('may be implemented in a future release') - def e(self): """ Timezone name. |
