Reformat code with pre-commit
This commit is contained in:
@@ -3,6 +3,7 @@ from yaml import dump
|
||||
from modules.network import Network
|
||||
from string import digits
|
||||
|
||||
|
||||
class NetworkCommand:
|
||||
def __init__(self, *args):
|
||||
self.network(*args)
|
||||
@@ -38,7 +39,7 @@ class NetworkCommand:
|
||||
elif length == 3:
|
||||
if spl[1] == "del":
|
||||
if spl[2] in main.network.keys():
|
||||
main.network[spl[2]].seppuku() # ;(
|
||||
main.network[spl[2]].seppuku() # ;(
|
||||
del main.network[spl[2]]
|
||||
success("Successfully removed network: %s" % spl[2])
|
||||
main.saveConf("network")
|
||||
|
||||
Reference in New Issue
Block a user