python: Reformat with Black, except quotes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-11 23:19:30 -08:00
committed by Tim Abbott
parent 5028c081cb
commit 11741543da
817 changed files with 44952 additions and 24860 deletions

View File

@@ -12,6 +12,7 @@ sanity_check.check_venv(__file__)
TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
def start_server(logfile_name: str) -> Tuple[bool, str]:
failure = True
key = "Quit the server with CTRL-C."
@@ -30,14 +31,15 @@ def start_server(logfile_name: str) -> Tuple[bool, str]:
return failure, ''.join(datalog)
if __name__ == '__main__':
print("Testing development server start!")
logfile_name = '/tmp/run-dev-output'
with open(logfile_name, 'wb', buffering=0) as logfile:
run_dev = subprocess.Popen(
[os.path.join(TOOLS_DIR, "run-dev.py")],
stdout=logfile, stderr=subprocess.STDOUT)
[os.path.join(TOOLS_DIR, "run-dev.py")], stdout=logfile, stderr=subprocess.STDOUT
)
failure, log = start_server(logfile_name)
run_dev.send_signal(signal.SIGINT)