fixed python styling issues that made me go bonkers

This commit is contained in:
prodigysml
2022-01-22 20:16:34 +11:00
parent fdc50fda96
commit ae5b19a671
4 changed files with 5 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ def task_queue_generator_func(arguments, output, repeat):
output.terminal(Level.THREAD, task.name(), "Added to Queue")
yield task
def main():
parser = InputParser()
arguments = parser.parse(argv[1:])

View File

@@ -209,7 +209,7 @@ class InputHelper(object):
target_spec = IPSet((target_spec,))
else:
target_spec = [target_spec]
for i in target_spec:
ips_list.append(str(i))
return (str_targets, set(ips_list))

View File

@@ -42,7 +42,7 @@ class OutputHelper(object):
'target': target,
'command': command,
'message': message,
'leader': leader
'leader': leader
}
if not self.silent:
@@ -50,7 +50,7 @@ class OutputHelper(object):
template = '[{time}] {leader} [{target}] {command} {message}'
else:
template = '[{time}] {leader} [{target}] {command} {message}'
print(template.format(**format_args))

View File

@@ -11,6 +11,7 @@ if platform.system().lower() == 'linux':
else:
shell = None
class Task(object):
def __init__(self, command, silent=False):
self.task = command