]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr.py
Add ge method to custom Version type
[deb_pkgs/autorandr.git] / autorandr.py
index 56db59a34dc6cdad8b2ccfb20572f3462a9b57bc..3eb3a9b60b95be496d15740cf382b503d8e3a841 100755 (executable)
@@ -135,6 +135,8 @@ class Version(object):
                 return True
         return len(theirs) > len(my)
 
+    def __ge__(self, other):
+        return not (self < other)
 
 def is_closed_lid(output):
     if not re.match(r'(eDP(-?[0-9]\+)*|LVDS(-?[0-9]\+)*)', output):