[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:
parent
57814c247f
commit
33961ff6f4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user