From f20bfdda9b3277b335f921a0ee95c29ef5a9fde8 Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Sun, 29 Nov 2020 16:03:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=89=88=E6=9C=AC=E6=AF=94?= =?UTF-8?q?=E8=BE=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/utils.py b/common/utils.py index a5760f2..b820f06 100644 --- a/common/utils.py +++ b/common/utils.py @@ -9,7 +9,7 @@ import platform import subprocess from urllib.parse import scheme_chars from ipaddress import IPv4Address, ip_address -from distutils.version import StrictVersion +from distutils.version import LooseVersion from pathlib import Path from stat import S_IXUSR @@ -525,7 +525,7 @@ def check_dep(): if implementation != 'CPython': logger.log('FATAL', f'OneForAll only passed the test under CPython') exit(1) - if StrictVersion(version) < StrictVersion('3.6'): + if LooseVersion(version) < LooseVersion('3.6'): logger.log('FATAL', 'OneForAll requires Python 3.6 or higher') exit(1)