[bootloader] Repair Python 3.3 compatibility

Argument *text* is an addition in 3.7, while the Calamares 3.2
branch supports Python 3.3 and later. Use the 'backwards compatibility'
name of the parameter, *universal_newlines*.

FIXES #2033
This commit is contained in:
Adriaan de Groot 2022-08-07 14:43:06 +02:00
parent 57814c247f
commit 33961ff6f4

View File

@ -454,7 +454,7 @@ def efi_boot_next():
""" """
boot_mgr = libcalamares.job.configuration["efiBootMgr"] boot_mgr = libcalamares.job.configuration["efiBootMgr"]
boot_entry = None boot_entry = None
efi_bootvars = subprocess.check_output([boot_mgr], text=True) efi_bootvars = subprocess.check_output([boot_mgr], universal_newlines=True)
for line in efi_bootvars.split('\n'): for line in efi_bootvars.split('\n'):
if not line: if not line:
continue continue