File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -503,9 +503,9 @@ The :mod:`calendar` module exports the following data attributes:
503503
504504 .. caution ::
505505
506- In locales with alternative forms of month names, the :data: `month_name ` sequence
506+ In locales with alternative forms of month names, the :data: `! month_name ` sequence
507507 may not be suitable when a month name stands by itself and not as part of a date.
508- For instance, in Greek and in many Slavic and Baltic languages, :data: `month_name `
508+ For instance, in Greek and in many Slavic and Baltic languages, :data: `! month_name `
509509 will produce the month in genitive case. Use :data: `standalone_month_name ` for a form
510510 suitable for standalone use.
511511
@@ -522,7 +522,7 @@ The :mod:`calendar` module exports the following data attributes:
522522
523523 .. caution ::
524524
525- In locales with alternative forms of month names, the :data: `month_abbr ` sequence
525+ In locales with alternative forms of month names, the :data: `! month_abbr ` sequence
526526 may not be suitable when a month name stands by itself and not as part of a date.
527527 Use :data: `standalone_month_abbr ` for a form suitable for standalone use.
528528
Original file line number Diff line number Diff line change @@ -140,9 +140,9 @@ def __len__(self):
140140month_name = _localized_month ('%B' )
141141month_abbr = _localized_month ('%b' )
142142
143- # On platforms that support the %OB and %Ob specifiers, it is used to get the
144- # standalone form of the month name. This is required for some languages
145- # such as Greek, Slavic, and Baltic languages.
143+ # On platforms that support the %OB and %Ob specifiers, it is used
144+ # to get the standalone form of the month name. This is required for
145+ # some languages such as Greek, Slavic, and Baltic languages.
146146try :
147147 standalone_month_name = _localized_month ('%OB' )
148148 standalone_month_abbr = _localized_month ('%Ob' )
Original file line number Diff line number Diff line change @@ -558,11 +558,14 @@ def test_months(self):
558558 self .assertEqual (value [::- 1 ], list (reversed (value )))
559559
560560 def test_standalone_month_name_and_abbr (self ):
561- # Ensure that the standalone month names and abbreviations are equal
562- # to the regular month names and abbreviations for the "C" locale.
561+ # Ensure that the standalone month names and abbreviations are
562+ # equal to the regular month names and abbreviations for
563+ # the "C" locale.
563564 with calendar .different_locale ("C" ):
564- self .assertListEqual (list (calendar .month_name ), list (calendar .standalone_month_name ))
565- self .assertListEqual (list (calendar .month_abbr ), list (calendar .standalone_month_abbr ))
565+ self .assertListEqual (list (calendar .month_name ),
566+ list (calendar .standalone_month_name ))
567+ self .assertListEqual (list (calendar .month_abbr ),
568+ list (calendar .standalone_month_abbr ))
566569
567570 def test_locale_text_calendar (self ):
568571 try :
You can’t perform that action at this time.
0 commit comments