From 5e65588af0d2821a8a7fc65e14f8b1c05b6e5989 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Tue, 9 Jul 2019 12:17:30 +0200 Subject: [PATCH] even more color --- test/sync_handshake.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/sync_handshake.py b/test/sync_handshake.py index 8ba1bcc..35d1405 100644 --- a/test/sync_handshake.py +++ b/test/sync_handshake.py @@ -136,9 +136,13 @@ def run(name, color=None): if multithreaded: from threading import Thread def sync_thread(): + print(colored("********* ", "yellow") + colored("sync_thread entered", color)) ui = UserInterface() + print(colored("********* ", "yellow") + colored("UserInterface object created", color)) pEp.do_sync_protocol() + print(colored("********* ", "yellow") + colored("leaving sync_thread", color)) sync = Thread(target=sync_thread) + sync.daemon = True sync.start() else: sync = None @@ -149,7 +153,7 @@ def run(name, color=None): l = minimail.recv_all(inbox, name) for n, m in l: msg = pEp.Message(m) - print(colored("*** Reading", color)) + output("*** Reading") print_msg(msg) msg2, keys, rating, flags = msg.decrypt()