mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
make vim's python indent happy
This commit is contained in:
parent
86041db5e4
commit
c0db29016b
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user