Commit 53c9db86 authored by Michal Čihař's avatar Michal Čihař

Do not reply on implicit conversion to LooseVersion

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 7c14aeda
......@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import print_function
from __future__ import print_function, unicode_literals
# For some reasons, this fails in PyLint sometimes...
# pylint: disable=E0611,F0401
......@@ -209,8 +209,7 @@ def check_version(name, url, version, expected):
'''
if expected is None:
return False
looseversion = LooseVersion(version)
if looseversion < expected:
if LooseVersion(version) < LooseVersion(expected):
print('*** {0} <{1}> is too old! ***'.format(name, url))
print('Installed version {0}, required {1}'.format(version, expected))
return True
......
......@@ -269,7 +269,7 @@ class Repository(object):
return False
if cls.req_version is None:
cls._is_supported = True
elif LooseVersion(version) >= cls.req_version:
elif LooseVersion(version) >= LooseVersion(cls.req_version):
cls._is_supported = True
else:
cls._is_supported = False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment