From 78ccaa7d65ba3fb23b8729b907756c8a08e98c64 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 22 Apr 2020 18:28:45 +0200 Subject: [PATCH] access regex groups in python 3.5 compatible way, closes #109 --- owrx/feature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/feature.py b/owrx/feature.py index df2434b..24cd547 100644 --- a/owrx/feature.py +++ b/owrx/feature.py @@ -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: