From f87cc0448158fedad9ba0a1edcec3664d9f90eb4 Mon Sep 17 00:00:00 2001 From: Alexander Belopolsky Date: Tue, 19 Oct 2010 17:43:50 +0000 Subject: [PATCH] =?utf8?q?Fixed=20the=20docstring=20for=20calendar.isleap(?= =?utf8?q?)=20function.=20Thanks=20Bo=C5=A1tjan=20Mejak=20for=20the=20patc?= =?utf8?q?h.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Lib/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0