access regex groups in python 3.5 compatible way, closes #109
This commit is contained in:
parent
0a16500133
commit
78ccaa7d65
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user