Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f87cc04

Browse files
committed
Fixed the docstring for calendar.isleap() function.
Thanks Boštjan Mejak for the patch.
1 parent 062d56b commit f87cc04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/calendar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __len__(self):
9595

9696

9797
def isleap(year):
98-
"""Return 1 for leap years, 0 for non-leap years."""
98+
"""Return True for leap years, False for non-leap years."""
9999
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
100100

101101

0 commit comments

Comments
 (0)