bpo-39710: Remove Python 2-specific sentence from calendar documentation (GH-26985)

This commit is contained in:
Hubert Badocha 2021-09-15 22:36:38 +02:00 committed by GitHub
parent 3814e2036d
commit a75a257725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 10 deletions

View 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)