summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-01-08 13:35:35 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-01-09 14:27:42 -0300
commitcaeb3f95236005ffd1260394688344459208e9a6 (patch)
tree2c9bb61e92f2490bfa9c68628343090c51cf66c7 /src
parent147233b3bd97b54a5e84944e6496818da34f60d5 (diff)
Replace version check with a better one.
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/provider/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/provider/__init__.py b/src/leap/bitmask/provider/__init__.py
index ca6426f4..87f9a8b7 100644
--- a/src/leap/bitmask/provider/__init__.py
+++ b/src/leap/bitmask/provider/__init__.py
@@ -19,7 +19,7 @@ Provider utilities.
"""
import os
-from distutils.version import LooseVersion
+from pkg_resources import parse_version
from leap.bitmask import __version__ as BITMASK_VERSION
from leap.common.check import leap_assert
@@ -62,4 +62,4 @@ def supports_client(minimum_version):
:returns: True if that version is supported or False otherwise.
:return type: bool
"""
- return LooseVersion(minimum_version) <= LooseVersion(BITMASK_VERSION)
+ return parse_version(minimum_version) <= parse_version(BITMASK_VERSION)