mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#18705: fix a number of typos. Patch by Févry Thibault.
This commit is contained in:
parent
67f39777fa
commit
30b9d5d3af
25 changed files with 44 additions and 44 deletions
|
@ -49,7 +49,7 @@ def _days_in_month(year, month):
|
|||
return _DAYS_IN_MONTH[month]
|
||||
|
||||
def _days_before_month(year, month):
|
||||
"year, month -> number of days in year preceeding first day of month."
|
||||
"year, month -> number of days in year preceding first day of month."
|
||||
assert 1 <= month <= 12, 'month must be in 1..12'
|
||||
return _DAYS_BEFORE_MONTH[month] + (month > 2 and _is_leap(year))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue