mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Merged revisions 85725 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85725 | alexander.belopolsky | 2010-10-19 13:43:50 -0400 (Tue, 19 Oct 2010) | 3 lines Fixed the docstring for calendar.isleap() function. Thanks Boštjan Mejak for the patch. ........
This commit is contained in:
parent
d371a5194a
commit
455b0db6ff
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ def __len__(self):
|
|||
|
||||
|
||||
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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue