Skip to content

Commit 1ce6a34

Browse files
committed
black lint
1 parent 04c3fbc commit 1ce6a34

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

flask_shell2http/base_entrypoint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ def my_callback_fn(context: dict, future: Future) -> None:
137137
view_func = dec(view_func)
138138
# register URL rule
139139
self.app.add_url_rule(
140-
uri, view_func=view_func,
140+
uri,
141+
view_func=view_func,
141142
)
142143
self.__commands.update({uri: command_name})
143144
logger.info(f"New endpoint: '{uri}' registered for command: '{command_name}'.")

flask_shell2http/classes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ def run_command(cmd: List[str], timeout: int, key: str) -> Dict:
128128
A Concurrent.Future object where future.result() is the report
129129
"""
130130
start_time: float = time.time()
131-
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,)
131+
proc = subprocess.Popen(
132+
cmd,
133+
stdout=subprocess.PIPE,
134+
stderr=subprocess.PIPE,
135+
)
132136
try:
133137
outs, errs = proc.communicate(timeout=int(timeout))
134138
stdout = outs.decode("utf-8")

0 commit comments

Comments
 (0)