use the old api for python < 3.6
This commit is contained in:
parent
8af8f93434
commit
4e9ef89276
@ -99,7 +99,7 @@ class FeatureDetector(object):
|
|||||||
def check_digiham_version(command):
|
def check_digiham_version(command):
|
||||||
try:
|
try:
|
||||||
process = subprocess.Popen([command, "--version"], stdout=subprocess.PIPE)
|
process = subprocess.Popen([command, "--version"], stdout=subprocess.PIPE)
|
||||||
version = LooseVersion(digiham_version_regex.match(process.stdout.readline().decode())[1])
|
version = LooseVersion(digiham_version_regex.match(process.stdout.readline().decode()).group(1))
|
||||||
process.wait(1)
|
process.wait(1)
|
||||||
return version >= required_version
|
return version >= required_version
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user