]> granicus.if.org Git - python/commitdiff
Merged revisions 85725 via svnmerge from
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Tue, 19 Oct 2010 17:52:22 +0000 (17:52 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Tue, 19 Oct 2010 17:52:22 +0000 (17:52 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  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

index 2e45e244beda97039780228cacb2164d0912fd4c..a8735b9307a5a64ef14a4037a05908a1afa4f358 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)