Skip to content
Snippets Groups Projects
Commit 33961ff6 authored by Adriaan de Groot's avatar Adriaan de Groot
Browse files

[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
parent 57814c24
No related branches found
No related tags found
No related merge requests found
...@@ -454,7 +454,7 @@ def efi_boot_next(): ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment