瀏覽代碼

Fixed #30989 -- Removed unimplemented B time format.

It's never been documented and has always raised a NotImplementedError.
Baptiste Mispelon 5 年之前
父節點
當前提交
cbe4d6203f
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      django/utils/dateformat.py

+ 1 - 5
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.