Skip to content

Commit

Permalink
[docs] Update
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav.menshykh committed Feb 24, 2021
1 parent 68945c2 commit fbdffd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'repository': '[email protected]:stanislav-web/OpenDoor.git',
'remote_version': 'https://raw.githubusercontent.com/stanislav-web/OpenDoor/master/VERSION',
'license': 'License: GNU General Public License',
'version': '3.4.5-stable',
'version': '4.0.1-beta',
'documentation': 'https://opendoor.readthedocs.org',
'required_versions': {
'minor': '3.9',
Expand Down
6 changes: 3 additions & 3 deletions src/core/helper/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import re
import webbrowser
from urllib.parse import urlparse
from distutils.version import LooseVersion
from packaging import version

try:
from collections.abc import Callable
Expand Down Expand Up @@ -107,7 +107,7 @@ def is_less(arg1, arg2):
:return: bool
"""

return LooseVersion(arg1) < LooseVersion(arg2)
return version.parse(arg1) < version.parse(arg2)

@staticmethod
def is_more(arg1, arg2):
Expand All @@ -118,7 +118,7 @@ def is_more(arg1, arg2):
:return: bool
"""

return LooseVersion(arg1) > LooseVersion(arg2)
return version.parse(arg1) > version.parse(arg2)

@staticmethod
def is_callable(func):
Expand Down

0 comments on commit fbdffd1

Please sign in to comment.