mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-23 18:35:44 -05:00
[bootloader] Repair Python 3.6 compatibility
Argument *text* is an addition in 3.7, while the Calamares 3.3 branch supports Python 3.6 and later. Use the 'backwards compatibility' name of the parameter, *universal_newlines*. Cherry-picked from 33961ff6f (in the 3.2 branch, though, Python 3.3 is supported).
This commit is contained in:
parent
e9f011b686
commit
115f493676
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ def efi_boot_next():
|
|||
"""
|
||||
boot_mgr = libcalamares.job.configuration["efiBootMgr"]
|
||||
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'):
|
||||
if not line:
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue