forked from OpenSDV/Linux_Kernel_map4vehicle
+check_output
This commit is contained in:
parent
3d2d5f5513
commit
65e4479e1c
|
@ -43,8 +43,7 @@ def log(*args, **kwargs):
|
||||||
|
|
||||||
|
|
||||||
def popen(p):
|
def popen(p):
|
||||||
return subprocess.Popen(p, shell=True, stdout=subprocess.PIPE,
|
return [str(a) for a in subprocess.check_output(p, shell=True).splitlines()]
|
||||||
encoding="utf-8").stdout
|
|
||||||
|
|
||||||
|
|
||||||
def extract_referer(line):
|
def extract_referer(line):
|
||||||
|
|
Loading…
Reference in New Issue