Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite095f37

Browse files
[3.11]gh-101100: Fix Sphinx warnings inlibrary/calendar.rst (GH-113500) (#113508)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent5b5d774 commite095f37

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

‎Doc/library/calendar.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,13 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
196196
output (defaulting to the system default encoding).
197197

198198

199+
..method::formatmonthname(theyear, themonth, withyear=True)
200+
201+
Return a month name as an HTML table row. If *withyear* is true the year
202+
will be included in the row, otherwise just the month name will be
203+
used.
204+
205+
199206
:class:`!HTMLCalendar` has the following attributes you can override to
200207
customize the CSS classes used by the calendar:
201208

@@ -289,7 +296,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
289296

290297
..note::
291298

292-
The constructor,:meth:`formatweekday` and:meth:`formatmonthname` methods
299+
The constructor,:meth:`!formatweekday` and:meth:`!formatmonthname` methods
293300
of these two classes temporarily change the ``LC_TIME`` locale to the given
294301
*locale*. Because the current locale is a process-wide setting, they are
295302
not thread-safe.
@@ -358,7 +365,7 @@ For simple text calendars this module provides the following functions.
358365

359366
..function::month(theyear, themonth, w=0, l=0)
360367

361-
Returns a month's calendar in a multi-line string using the:meth:`formatmonth`
368+
Returns a month's calendar in a multi-line string using the:meth:`~TextCalendar.formatmonth`
362369
of the:class:`TextCalendar` class.
363370

364371

@@ -370,7 +377,7 @@ For simple text calendars this module provides the following functions.
370377
..function::calendar(year, w=2, l=1, c=6, m=3)
371378

372379
Returns a 3-column calendar for an entire year as a multi-line string using
373-
the:meth:`formatyear` of the:class:`TextCalendar` class.
380+
the:meth:`~TextCalendar.formatyear` of the:class:`TextCalendar` class.
374381

375382

376383
..function::timegm(tuple)

‎Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Doc/library/asyncio-policy.rst
3131
Doc/library/asyncio-subprocess.rst
3232
Doc/library/asyncio-task.rst
3333
Doc/library/bdb.rst
34-
Doc/library/calendar.rst
3534
Doc/library/cmd.rst
3635
Doc/library/collections.rst
3736
Doc/library/concurrent.futures.rst

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp