Skip to content

Commit 5feb1dc

Browse files
committed
Fix grammar and wording
1 parent 36bb456 commit 5feb1dc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Doc/library/calendar.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -522,17 +522,17 @@ 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 month names forms, 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

529529

530530
.. data:: standalone_month_name
531531

532532
A sequence that represents the months of the year in the current locale
533-
in the grammatical form used when a month name stands by itself if the locale
534-
provides one. If the locale does not supply an alternative form, it is equal to
535-
:data:`month_name`.
533+
in the grammatical form used when a month name stands by itself if
534+
the locale provides one. If the locale does not supply a standalone form,
535+
it is equal to :data:`month_name`.
536536

537537
>>> import calendar
538538
>>> list(calendar.standalone_month_name)
@@ -544,9 +544,9 @@ The :mod:`calendar` module exports the following data attributes:
544544
.. data:: standalone_month_abbr
545545

546546
A sequence that represents the abbreviated months of the year in the current
547-
locale in the grammatical form used when a month name stands by itself if the
548-
locale provides one. If the locale does not supply an alternative form, it is equal to
549-
:data:`month_abbr`.
547+
locale in the grammatical form used when a month name stands by itself if
548+
the locale provides one. If the locale does not supply a standalone form
549+
it is equal to :data:`month_abbr`.
550550

551551
>>> import calendar
552552
>>> list(calendar.standalone_month_abbr)

Lib/calendar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def __len__(self):
140140
month_name = _localized_month('%B')
141141
month_abbr = _localized_month('%b')
142142

143-
# On platforms that support the %OB and %Ob specifiers, it is used
143+
# On platforms that support the %OB and %Ob specifiers, they are used
144144
# to get the standalone form of the month name. This is required for
145145
# some languages such as Greek, Slavic, and Baltic languages.
146146
try:

0 commit comments

Comments
 (0)