mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fixed the docstring for calendar.isleap() function.
Thanks Boštjan Mejak for the patch.
This commit is contained in:
parent
062d56b1f0
commit
f87cc04481
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ month_abbr = _localized_month('%b')
|
||||||
|
|
||||||
|
|
||||||
def isleap(year):
|
def isleap(year):
|
||||||
"""Return 1 for leap years, 0 for non-leap years."""
|
"""Return True for leap years, False for non-leap years."""
|
||||||
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
|
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue