From bd9e324f6c27e7749e6496484349a29b80ae6bef Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Sat, 21 Jul 2018 23:01:48 +0300 Subject: [PATCH] *popen --- srcxray.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcxray.py b/srcxray.py index ee5b7cf..239e88a 100755 --- a/srcxray.py +++ b/srcxray.py @@ -44,7 +44,8 @@ def log(*args, **kwargs): def popen(p): - return [str(a) for a in subprocess.check_output(p, shell=True).splitlines()] + return [a.decode('utf-8') for a in subprocess.check_output(p, shell=True) + .splitlines()] def extract_referer(line):