mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-39710: Remove Python 2-specific sentence from calendar documentation (GH-26985)
This commit is contained in:
parent
3814e2036d
commit
a75a257725
2 changed files with 3 additions and 10 deletions
|
@ -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
|
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.
|
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)
|
.. class:: LocaleHTMLCalendar(firstweekday=0, locale=None)
|
||||||
|
|
||||||
This subclass of :class:`HTMLCalendar` can be passed a locale name in the
|
This subclass of :class:`HTMLCalendar` can be passed a locale name in the
|
||||||
constructor and will return month and weekday names in the specified
|
constructor and will return month and weekday names in the specified
|
||||||
locale. If this locale includes an encoding all strings containing month and
|
locale.
|
||||||
weekday names will be returned as unicode.
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
|
@ -558,9 +558,7 @@ class different_locale:
|
||||||
class LocaleTextCalendar(TextCalendar):
|
class LocaleTextCalendar(TextCalendar):
|
||||||
"""
|
"""
|
||||||
This class can be passed a locale name in the constructor and will return
|
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
|
month and weekday names in the specified locale.
|
||||||
an encoding all strings containing month and weekday names will be returned
|
|
||||||
as unicode.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, firstweekday=0, locale=None):
|
def __init__(self, firstweekday=0, locale=None):
|
||||||
|
@ -581,9 +579,7 @@ class LocaleTextCalendar(TextCalendar):
|
||||||
class LocaleHTMLCalendar(HTMLCalendar):
|
class LocaleHTMLCalendar(HTMLCalendar):
|
||||||
"""
|
"""
|
||||||
This class can be passed a locale name in the constructor and will return
|
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
|
month and weekday names in the specified locale.
|
||||||
an encoding all strings containing month and weekday names will be returned
|
|
||||||
as unicode.
|
|
||||||
"""
|
"""
|
||||||
def __init__(self, firstweekday=0, locale=None):
|
def __init__(self, firstweekday=0, locale=None):
|
||||||
HTMLCalendar.__init__(self, firstweekday)
|
HTMLCalendar.__init__(self, firstweekday)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue