Skip to content

Commit 9cb7a5b

Browse files
Fix documented TextCalendar.format{week,monthname}() signatures (#159516)
1 parent d3ada45 commit 9cb7a5b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/library/calendar.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
169169
the specified width, representing an empty day. The *weekday* parameter
170170
is unused.
171171

172-
.. method:: formatweek(theweek, w=0)
172+
.. method:: formatweek(theweek, width)
173173

174-
Return a single week in a string with no newline. If *w* is provided, it
175-
specifies the width of the date columns, which are centered. Depends
174+
Return a single week in a string with no newline. *width* specifies
175+
the width of the date columns, which are centered. Depends
176176
on the first weekday as specified in the constructor or set by the
177177
:meth:`setfirstweekday` method.
178178

@@ -200,7 +200,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
200200
:meth:`setfirstweekday` method.
201201

202202

203-
.. method:: formatmonthname(theyear, themonth, width=0, withyear=True)
203+
.. method:: formatmonthname(theyear, themonth, width, withyear=True)
204204

205205
Return a string representing the month's name centered within the
206206
specified *width*. If *withyear* is ``True``, include the year in the

0 commit comments

Comments
 (0)