From c0db29016b5cf119cdca8c8e4c9c880643c47b1e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 24 Jan 2023 18:16:21 +0530 Subject: [PATCH] make vim's python indent happy --- src/calibre/utils/windows/winspeech.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/utils/windows/winspeech.py b/src/calibre/utils/windows/winspeech.py index 7ad865bb52..a23bfe4c33 100644 --- a/src/calibre/utils/windows/winspeech.py +++ b/src/calibre/utils/windows/winspeech.py @@ -21,12 +21,12 @@ def decode_msg(line: bytes) -> dict: def develop_speech(text='Lucca brazzi sleeps with the fishes'): p = start_pipe_worker('from calibre_extensions.winspeech import run_main_loop; run_main_loop()') - print('\x1b[32mSpeaking', text, '\x1b[39m', flush=True) # ]] + print('\x1b[32mSpeaking', text, '\x1b[39m]]'[:-2], flush=True) q = Queue() def echo_output(p): for line in p.stdout: - sys.stdout.buffer.write(b'\x1b[33m' + line + b'\x1b[39m') # ]] + sys.stdout.buffer.write(b'\x1b[33m' + line + b'\x1b[39m]]'[:-2]) sys.stdout.buffer.flush() q.put(decode_msg(line))