]> code.ossystems Code Review - openembedded-core.git/commit
oepydevshell-internal.py: decode only when readdata is valid
authorChangqing Li <changqing.li@windriver.com>
Wed, 14 Nov 2018 09:46:03 +0000 (17:46 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Nov 2018 09:32:17 +0000 (09:32 +0000)
commitd598f8d48e9b094af99effa7471d613b16ffa817
treed025ff5f33e7348d151033567c84d19a310cd18b
parent1d24d1ac5b9c772d84104396438e5d1308332785
oepydevshell-internal.py: decode only when readdata is valid

fix below problem:
pydevshell raises exception when maximize the python shell window.
when click maximize, rlist of select return ready object, but the
pty.read is None, so throw exception of 'NoneType' object has no
attribute 'decode', change to only decode when readdata is valid.

[YOCTO #11875]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oepydevshell-internal.py