]> code.ossystems Code Review - openembedded-core.git/commit
devpyshell: python3: flush stdout explicitly
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 4 Jul 2016 22:08:14 +0000 (01:08 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Jul 2016 08:55:39 +0000 (09:55 +0100)
commit732001cb268683f5b56e251e2964ec5b694a2147
treeadeff3343e2752f1324dbc60dbc11b3bb5f3811e
parent875910451e1ce97d0c42b41b1140c8160ed1f40a
devpyshell: python3: flush stdout explicitly

Opening text stream in unbuffered mode raises the following
exception In Python 3:
    ValueError: can't have unbuffered text I/O

Fixed by leaving std* streams in text mode and flushing
stdout explicitly.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/devshell.bbclass
scripts/oepydevshell-internal.py