Skip to content

Commit 60c5572

Browse files
Update calendar.rst
1 parent 6ed0c74 commit 60c5572

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/calendar.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,27 +138,27 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
138138

139139
:class:`TextCalendar` instances have the following methods:
140140

141-
.. method:: formatday(theday, weekday, width=2)
141+
.. method:: formatday(theday, weekday, width)
142142

143-
Return a :class:`str` representing a single day formatted with the given width
144-
which defaults to ``2``. If *theday* is ``0``, return a :class:`str` of spaces of
143+
Return a :class:`str` representing a single day formatted with the given width.
144+
If *theday* is ``0``, return a :class:`str` of spaces of
145145
the specified width, representing an empty day. The *weekday* parameter
146146
represents the day of the week, where ``0`` is Monday and ``6`` is Sunday.
147147

148-
.. method:: formatweek(theweek, width=2)
148+
.. method:: formatweek(theweek, width)
149149

150150
Return a :class:`str` representing an entire week formatted with the given width for each day.
151151
The *theweek* parameter is a list of tuples, where each tuple contains a day of
152152
the month or ``0`` for padding, and the corresponding weekday where ``0`` is
153153
Monday and ``6`` is Sunday. Each day is padded to the specified width.
154154

155-
.. method:: formatweekday(weekday, width=2)
155+
.. method:: formatweekday(weekday, width)
156156

157157
Return a :class:`str` representing the name of a single weekday formatted to
158158
the specified width. The *weekday* parameter is an integer representing
159159
the day of the week, where ``0`` is Monday and ``6`` is Sunday.
160160

161-
.. method:: formatweekheader(width=2)
161+
.. method:: formatweekheader(width)
162162

163163
Return a :class:`str` containing the header row of weekday names, formatted
164164
with the given width for each column. The names depend on the locale

0 commit comments

Comments
 (0)