mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-25 03:51:40 +01:00
Fix vulture output for Python 3.
This commit is contained in:
parent
8b7659c4d3
commit
cfae0d020a
4
tox.ini
4
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]
|
||||
|
Loading…
Reference in New Issue
Block a user