Skip to content

Commit d285fd5

Browse files
committed
Add missing comparisons on version
1 parent 3ba0a2c commit d285fd5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

autorandr.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ def __lt__(self, other):
138138
def __ge__(self, other):
139139
return not (self < other)
140140

141+
def __ne__(self, other):
142+
return not (self == other)
143+
144+
def __le__(self, other):
145+
return (self < other) or (self == other)
146+
147+
def __gt__(self, other):
148+
return self >= other and not (self == other)
149+
141150
def is_closed_lid(output):
142151
if not re.match(r'(eDP(-?[0-9]\+)*|LVDS(-?[0-9]\+)*)', output):
143152
return False

0 commit comments

Comments
 (0)