access regex groups in python 3.5 compatible way, closes #109

This commit is contained in:
Jakob Ketterl 2020-04-22 18:28:45 +02:00
parent 0a16500133
commit 78ccaa7d65
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ class FeatureDetector(object):
for line in process.stdout:
matches = factory_regex.match(line.decode())
if matches:
drivers = [s.strip() for s in matches[1].split(", ")]
drivers = [s.strip() for s in matches.group(1).split(", ")]
return driver in drivers
except FileNotFoundError: