]> granicus.if.org Git - python/commitdiff
Fixed the docstring for calendar.isleap() function.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Tue, 19 Oct 2010 17:43:50 +0000 (17:43 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Tue, 19 Oct 2010 17:43:50 +0000 (17:43 +0000)
Thanks BoĊĦtjan Mejak for the patch.

Lib/calendar.py

index 0c1fdad56749d95a3f463f6a9b282082dcb03eba..12bd1a8b17c36bf55f18d93c8dcbab26e7fe5a6c 100644 (file)
@@ -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)