[Python-checkins] r85727 - in python/branches/release27-maint: Lib/calendar.py

alexander.belopolsky python-checkins at python.org
Tue Oct 19 19:52:23 CEST 2010


Author: alexander.belopolsky
Date: Tue Oct 19 19:52:22 2010
New Revision: 85727

Log:
Merged revisions 85725 via svnmerge from 
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.
........


Modified:
   python/branches/release27-maint/   (props changed)
   python/branches/release27-maint/Lib/calendar.py

Modified: python/branches/release27-maint/Lib/calendar.py
==============================================================================
--- python/branches/release27-maint/Lib/calendar.py	(original)
+++ python/branches/release27-maint/Lib/calendar.py	Tue Oct 19 19:52:22 2010
@@ -95,7 +95,7 @@
 
 
 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)
 
 


More information about the Python-checkins mailing list