Skip to content

Commit

Permalink
Fixed the docstring for calendar.isleap() function.
Browse files Browse the repository at this point in the history
Thanks Boštjan Mejak for the patch.
  • Loading branch information
abalkin committed Oct 19, 2010
1 parent 062d56b commit f87cc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit f87cc04

Please sign in to comment.