Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a75a257

Browse files
authored
bpo-39710: Remove Python 2-specific sentence from calendar documentation (GH-26985)
1 parent 3814e20 commit a75a257

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

Doc/library/calendar.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,13 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
279279

280280
This subclass of :class:`TextCalendar` can be passed a locale name in the
281281
constructor and will return month and weekday names in the specified locale.
282-
If this locale includes an encoding all strings containing month and weekday
283-
names will be returned as unicode.
284282

285283

286284
.. class:: LocaleHTMLCalendar(firstweekday=0, locale=None)
287285

288286
This subclass of :class:`HTMLCalendar` can be passed a locale name in the
289287
constructor and will return month and weekday names in the specified
290-
locale. If this locale includes an encoding all strings containing month and
291-
weekday names will be returned as unicode.
288+
locale.
292289

293290
.. note::
294291

Lib/calendar.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,7 @@ def __exit__(self, *args):
558558
class LocaleTextCalendar(TextCalendar):
559559
"""
560560
This class can be passed a locale name in the constructor and will return
561-
month and weekday names in the specified locale. If this locale includes
562-
an encoding all strings containing month and weekday names will be returned
563-
as unicode.
561+
month and weekday names in the specified locale.
564562
"""
565563

566564
def __init__(self, firstweekday=0, locale=None):
@@ -581,9 +579,7 @@ def formatmonthname(self, theyear, themonth, width, withyear=True):
581579
class LocaleHTMLCalendar(HTMLCalendar):
582580
"""
583581
This class can be passed a locale name in the constructor and will return
584-
month and weekday names in the specified locale. If this locale includes
585-
an encoding all strings containing month and weekday names will be returned
586-
as unicode.
582+
month and weekday names in the specified locale.
587583
"""
588584
def __init__(self, firstweekday=0, locale=None):
589585
HTMLCalendar.__init__(self, firstweekday)

0 commit comments

Comments
 (0)