mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 06:27:41 +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; \
|
python -c "import sys; from subprocess import Popen, PIPE; \
|
||||||
a = ['vulture'] + r'{posargs:{env:SSHAUDIT}}'.split(' '); \
|
a = ['vulture'] + r'{posargs:{env:SSHAUDIT}}'.split(' '); \
|
||||||
o = Popen(a, shell=False, stdout=PIPE).communicate()[0]; \
|
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]; \
|
l = [x for x in o.split(b'\n') if x and b'Unused import' not in x]; \
|
||||||
print('\n'.join(l)); \
|
print(b'\n'.join(l).decode('utf-8')); \
|
||||||
sys.exit(1 if len(l) > 0 else 0)"
|
sys.exit(1 if len(l) > 0 else 0)"
|
||||||
|
|
||||||
[testenv:type]
|
[testenv:type]
|
||||||
|
Loading…
Reference in New Issue
Block a user