summaryrefslogtreecommitdiffstats
path: root/Lib/calendar.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/calendar.py')
-rw-r--r--Lib/calendar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py
index 41bb191..01c2194 100644
--- a/Lib/calendar.py
+++ b/Lib/calendar.py
@@ -50,7 +50,7 @@ def setfirstweekday(weekday):
def isleap(year):
"""Return 1 for leap years, 0 for non-leap years."""
- return year % 4 == 0 and (year % 100 <> 0 or year % 400 == 0)
+ return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
def leapdays(y1, y2):
"""Return number of leap years in range [y1, y2).