From c30acfabdb41c37faa0534fc9416d6f0e0af102e Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 24 Jun 2019 17:15:47 +0200 Subject: [PATCH] still working --- snippets/test8.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snippets/test8.py b/snippets/test8.py index 632a4e3..4b57a1a 100644 --- a/snippets/test8.py +++ b/snippets/test8.py @@ -165,13 +165,13 @@ class CmdInterpreter(cmd.Cmd): self.use_rawinput = False def do_test(self, arg): - self.stdout.write("This is the test response") + self.stdout.write("This is the test response\n\r") def do_notify(self, arg): nf.notify() def do_bye(self, arg): - self.stdout.write("Bye!") + self.stdout.write("Bye!\n\r") return True @@ -180,6 +180,7 @@ class CmdHandle(socketserver.StreamRequestHandler): cmd = CmdInterpreter(io.TextIOWrapper(self.rfile), io.TextIOWrapper(self.wfile)) try: cmd.cmdloop() + print("Cmd handle terminated") except ConnectionAbortedError as e: print("Cmd handle externally interrupted")