From cfae0d020ad4e247ec6a9861e5a38bf7185b0182 Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Sat, 25 Mar 2017 08:33:16 +0200 Subject: [PATCH] Fix vulture output for Python 3. --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index b5e5acc..92f8ff7 100644 --- a/tox.ini +++ b/tox.ini @@ -77,8 +77,8 @@ commands = python -c "import sys; from subprocess import Popen, PIPE; \ a = ['vulture'] + r'{posargs:{env:SSHAUDIT}}'.split(' '); \ o = Popen(a, shell=False, stdout=PIPE).communicate()[0]; \ - l = [x for x in o.split('\n') if x and 'Unused import' not in x]; \ - print('\n'.join(l)); \ + l = [x for x in o.split(b'\n') if x and b'Unused import' not in x]; \ + print(b'\n'.join(l).decode('utf-8')); \ sys.exit(1 if len(l) > 0 else 0)" [testenv:type]