mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-01 22:28:20 +00:00
CI: apply flake8 fixes (#288)
This commit is contained in:
parent
1f113a09c3
commit
d5feca7d21
2 changed files with 2 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
# This file is part of masscanned.
|
||||
# Copyright 2021 - The IVRE project
|
||||
# Copyright 2021 - 2025 - The IVRE project
|
||||
#
|
||||
# Masscanned is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
|
@ -39,7 +39,6 @@ ERRORS = []
|
|||
|
||||
# decorator to automatically add a function to tests
|
||||
def test(f):
|
||||
global ERRORS, TESTS
|
||||
OK = "\033[1mOK\033[0m"
|
||||
KO = "\033[1m\033[1;%dmKO\033[0m" % 31
|
||||
fname = f.__name__.ljust(50, ".")
|
||||
|
@ -61,7 +60,6 @@ def test(f):
|
|||
|
||||
|
||||
def test_all(m):
|
||||
global ERRORS, TESTS
|
||||
# execute tests
|
||||
for t in TESTS:
|
||||
# perform unit test
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# This file is part of masscanned.
|
||||
# Copyright 2021 - The IVRE project
|
||||
# Copyright 2021 - 2025 - The IVRE project
|
||||
#
|
||||
# Masscanned is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
|
@ -39,7 +39,6 @@ from src.conf import IPV4_ADDR, IPV6_ADDR, MAC_ADDR, OUTDIR
|
|||
|
||||
|
||||
def cleanup_net(iface):
|
||||
global ipfile
|
||||
subprocess.check_call(["ip", "link", "delete", iface])
|
||||
subprocess.check_call(
|
||||
[
|
||||
|
@ -64,7 +63,6 @@ def cleanup_net(iface):
|
|||
|
||||
|
||||
def setup_net(iface):
|
||||
global IPV4_ADDR
|
||||
# create the interfaces pair
|
||||
atexit.register(functools.partial(cleanup_net, f"{iface}a"))
|
||||
subprocess.check_call(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue