mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user