[Python-checkins] r85725 - python/branches/py3k/Lib/calendar.py

alexander.belopolsky python-checkins at python.org
Tue Oct 19 19:43:56 CEST 2010


Author: alexander.belopolsky
Date: Tue Oct 19 19:43:50 2010
New Revision: 85725

Log:
Fixed the docstring for calendar.isleap() function.
Thanks Boštjan Mejak for the patch.


Modified:
   python/branches/py3k/Lib/calendar.py

Modified: python/branches/py3k/Lib/calendar.py
==============================================================================
--- python/branches/py3k/Lib/calendar.py	(original)
+++ python/branches/py3k/Lib/calendar.py	Tue Oct 19 19:43:50 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