summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-10-19 17:43:50 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-10-19 17:43:50 (GMT)
commitf87cc0448158fedad9ba0a1edcec3664d9f90eb4 (patch)
tree8b528969f6bfebbf86d5af38cc444c52461e134d
parent062d56b1f04122cd631a1d0815d4505598a5183d (diff)
downloadcpython-f87cc0448158fedad9ba0a1edcec3664d9f90eb4.zip
cpython-f87cc0448158fedad9ba0a1edcec3664d9f90eb4.tar.gz
cpython-f87cc0448158fedad9ba0a1edcec3664d9f90eb4.tar.bz2
Fixed the docstring for calendar.isleap() function.
Thanks BoĊĦtjan Mejak for the patch.
-rw-r--r--Lib/calendar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py
index 0c1fdad..12bd1a8 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)