277d10417b
- Update popen to use universal_newlines=True to enable newlines for calls that we parse or consume output for. Without universal_newlines=True, the output is treated as bytes under python3 which leads to issues later where we are using it as strings. - The division operator in Python 3 results in a float, not an integer like in Python 2. Use the truncation division operator instead. - Use python builtins since the behavior of round has changed between python2 and python3. (https://docs.python.org/3/whatsnew/3.0.html#builtins) Story: 2006796 Task: 42695 Signed-off-by: Charles Short <charles.short@windriver.com> Change-Id: I9c9a4fdfd8a65cf6a3034a2c80c3a620ab138d22 (cherry picked from commit 9ced50cf38df6166587a338765c92596d41a27a8)