Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 15, 2024
1 parent 4658cca commit c5895be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: pycodestyle --max-line-length=120 --ignore=E402,W504,W605,E722,E741 . --exclude=doc

- name: Unit tests
run: python -m coverage run --source=. -m unittest discover -s test -p '*.py'
run: python -m coverage run --source=. -m unittest discover -v -s test -p '*.py'

- name: Generate XML coverage report
run: python -m coverage xml
Expand Down
4 changes: 2 additions & 2 deletions radl/radl.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import copy
import re
from distutils.version import LooseVersion
from packaging.version import Version

try:
unicode
Expand Down Expand Up @@ -797,7 +797,7 @@ def isNewerThan(self, other):
if not other.getValue("version"):
return False
else:
return LooseVersion(self.getValue("version")) > LooseVersion(other.getValue("version"))
return Version(self.getValue("version")) > Version(other.getValue("version"))
else:
return True
else:
Expand Down

0 comments on commit c5895be

Please sign in to comment.