From: Alexander Belopolsky Date: Tue, 19 Oct 2010 17:43:50 +0000 (+0000) Subject: Fixed the docstring for calendar.isleap() function. X-Git-Tag: v3.2a4~422 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f87cc0448158fedad9ba0a1edcec3664d9f90eb4;p=python Fixed the docstring for calendar.isleap() function. Thanks BoĊĦtjan Mejak for the patch. --- diff --git a/Lib/calendar.py b/Lib/calendar.py index 0c1fdad567..12bd1a8b17 100644 --- a/Lib/calendar.py +++ b/Lib/calendar.py @@ -95,7 +95,7 @@ month_abbr = _localized_month('%b') 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)