call_helpers: Make default behaviour of subprocess_run compatible
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 21 Dec 2018 15:22:32 +0000 (16:22 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 7 Feb 2019 15:50:39 +0000 (16:50 +0100)
commit5796b23810cc9703f59f59153def6856a81831c0
tree7de08a7bb0aba7a7dd74d0812f8662f4f298a13e
parent351d69c7d2868641f056b63edd2e737e5fc1fb50
call_helpers: Make default behaviour of subprocess_run compatible

subprocess_run just calls call_and_capture which has different default
settings (return text instead of bytes, split lines).
However, subprocess_run should be a drop-in replacement of the python3.5
subprocess.run function, so should behave the same way.

This little trick fixed e.g. calls to "get_cnf -j" called from cnfvar.py
on python 3.3 (current intra2net system version)
src/call_helpers.py