0acb956dce
- socket requires bytes and we need to explicitly convert str to bytes. - check_output() returns bytes, while python2 returns str, passing universal_newlines=True it will return str no matter what python version is used. Story: 2006796 Task: 42297 Signed-off-by: Charles Short <charles.short@windriver.com> Change-Id: Ie3921c4ae6211a8b0d290bdbdb195ce07036afbc (cherry picked from commit 26c16b3eb84297998f11fca9a2b92d2adaa60f0d)