devshell.bbclass: Exceptions displayed within devpyshell
PATCH 1/1 devshell.bbclass: Exceptions displayed within devpyshell
From: Dorinda Bassey <[email protected]>
If you type something into devpyshell, an exception should be triggered, but that exception isn't printed out because it is not being flushed out of the buffer. This patch fixes that issue.
[YOCTO #12156]
Signed-off-by Dorinda Bassey <[email protected]>
--- meta/classes/devshell.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/devshell.bbclass +1 -0
@@ -128,6 +128,7 @@ def devpyshell(d): more = i.runsource(source, "<pyshell>") if not more: buf = [] + sys.stderr.flush() prompt(more) except KeyboardInterrupt: i.write("\nKeyboardInterrupt\n")
Signature · 1 line
2.17.1