blob: 734c0150e4ade6aad2fc075800a2428a9aaeb76c (
plain) (
tree)
|
|
import re
import subprocess
def check_regex(unitd):
output = subprocess.check_output(
[unitd, '--version'], stderr=subprocess.STDOUT
)
if re.search('--no-regex', output.decode()):
return False
return True
|