]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39710: Remove Python 2-specific sentence from calendar documentation (GH-26985)
authorHubert Badocha <badocha.hubert@gmail.com>
Wed, 15 Sep 2021 20:36:38 +0000 (22:36 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Sep 2021 20:36:38 +0000 (22:36 +0200)
Doc/library/calendar.rst
Lib/calendar.py

index c3c04db853ed2d4d7938a8b3400a4301577c942a..6050ff5607a274cf844d9e34e74603d6f3dd5e08 100644 (file)
@@ -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::
 
index 7311a0173729ecc9c858dd43f39dc14e5c2865c8..663bb946b0d11e68be20f4f7f1d8f541bd4b58b2 100644 (file)
@@ -558,9 +558,7 @@ class different_locale:
 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 @@ class LocaleTextCalendar(TextCalendar):
 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)