+check_output

This commit is contained in:
Costa Shulyupin 2018-07-19 14:02:40 +03:00
parent 3d2d5f5513
commit 65e4479e1c
1 changed files with 1 additions and 2 deletions

View File

@ -43,8 +43,7 @@ def log(*args, **kwargs):
def popen(p):
return subprocess.Popen(p, shell=True, stdout=subprocess.PIPE,
encoding="utf-8").stdout
return [str(a) for a in subprocess.check_output(p, shell=True).splitlines()]
def extract_referer(line):