Suggest using universal_newlines as the alias text only works for python 3.7 and above.

Default python3 for example is 3.6 in Ubuntu Bionic and therefore liquidsoap fails with parameter `text`.
This commit is contained in:
Keoni Mahelona 2020-02-29 18:59:39 +13:00 committed by Kyle Robbertze
parent 6ebb1fd555
commit 4a45225369

View file

@ -23,7 +23,7 @@ def run():
generate_liquidsoap_cfg.run()
''' check liquidsoap version if less than 1.3 use legacy liquidsoap script '''
liquidsoap_version = subprocess.check_output("liquidsoap --version", shell=True, text=True)
liquidsoap_version = subprocess.check_output("liquidsoap --version", shell=True, universal_newlines=True)
if pure.version_cmp(liquidsoap_version, "1.3") < 0:
script_path = os.path.join(os.path.dirname(__file__), 'ls_script.liq')
else: