[Python-checkins] bpo-39710: Remove Python 2-specific sentence from calendar documentation (GH-26985)
ambv
webhook-mailer at python.org
Wed Sep 15 16:36:46 EDT 2021
https://github.com/python/cpython/commit/a75a2577259a55d816de24a4cca16aad74e02aa5
commit: a75a2577259a55d816de24a4cca16aad74e02aa5
branch: main
author: Hubert Badocha <badocha.hubert at gmail.com>
committer: ambv <lukasz at langa.pl>
date: 2021-09-15T22:36:38+02:00
summary:
bpo-39710: Remove Python 2-specific sentence from calendar documentation (GH-26985)
files:
M Doc/library/calendar.rst
M Lib/calendar.py
diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst
index c3c04db853ed2..6050ff5607a27 100644
--- a/Doc/library/calendar.rst
+++ b/Doc/library/calendar.rst
@@ -279,16 +279,13 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
This subclass of :class:`TextCalendar` can be passed a locale name in the
constructor and will return month and weekday names in the specified locale.
- If this locale includes an encoding all strings containing month and weekday
- names will be returned as unicode.
.. class:: LocaleHTMLCalendar(firstweekday=0, locale=None)
This subclass of :class:`HTMLCalendar` can be passed a locale name in the
constructor and will return month and weekday names in the specified
- locale. If this locale includes an encoding all strings containing month and
- weekday names will be returned as unicode.
+ locale.
.. note::
diff --git a/Lib/calendar.py b/Lib/calendar.py
index 7311a0173729e..663bb946b0d11 100644
--- a/Lib/calendar.py
+++ b/Lib/calendar.py
@@ -558,9 +558,7 @@ def __exit__(self, *args):
class LocaleTextCalendar(TextCalendar):
"""
This class can be passed a locale name in the constructor and will return
- month and weekday names in the specified locale. If this locale includes
- an encoding all strings containing month and weekday names will be returned
- as unicode.
+ month and weekday names in the specified locale.
"""
def __init__(self, firstweekday=0, locale=None):
@@ -581,9 +579,7 @@ def formatmonthname(self, theyear, themonth, width, withyear=True):
class LocaleHTMLCalendar(HTMLCalendar):
"""
This class can be passed a locale name in the constructor and will return
- month and weekday names in the specified locale. If this locale includes
- an encoding all strings containing month and weekday names will be returned
- as unicode.
+ month and weekday names in the specified locale.
"""
def __init__(self, firstweekday=0, locale=None):
HTMLCalendar.__init__(self, firstweekday)
More information about the Python-checkins
mailing list