On 11/13/18 7:10 PM, Burton, Ross wrote:
On Tue, 13 Nov 2018 at 10:03, Richard Purdie <[email protected]> wrote:Usually you'd write this as: if readdata: i = i + readdata.decode('utf-8') Is there a reason not to do that here?Whilst this code is being changed, is there a chance of getting a partial read that has half of a utf-8 byte sequence? Ross
Seems "continue" will delay the deal of "i" to next loop, but will not lost data.
but I still change to let it continue to deal with "i" , in case there is still "i" not
outputed in last loop. it should be better. changqing -- BRs Sandy(Li Changqing) -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
