Skip to content

Commit

Permalink
Fix OsVersion comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Dec 24, 2023
1 parent 05e7155 commit a528d97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def __lt__(self, other):
elif self.version == "":
return True
else:
return any(map(lambda a: a[0] < a[1],
zip(map(int, self.version.split(".")), map(int, other.version.split(".")))))
return self.version.split(".") < other.version.split(".")

def __eq__(self, other):
return MODEL_ORDER[self.model] == MODEL_ORDER[other.model] and self.version == other.version
Expand Down

0 comments on commit a528d97

Please sign in to comment.