From 65e4479e1cf8429a329a51e051cf245725d4d2d0 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Thu, 19 Jul 2018 14:02:40 +0300 Subject: [PATCH] +check_output --- srcxray.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srcxray.py b/srcxray.py index 545ca4d..b2e6450 100755 --- a/srcxray.py +++ b/srcxray.py @@ -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):