From 78025225316c3a22e3a0e3f095b204a3b05b7ee0 Mon Sep 17 00:00:00 2001 From: Alexander Belopolsky Date: Tue, 19 Oct 2010 17:52:22 +0000 Subject: [PATCH] Merged revisions 85725 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ........ 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. ........ --- Lib/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/calendar.py b/Lib/calendar.py index 2e45e244bed..a8735b9307a 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)