From dcb89a62e063173ba9d2962a86fd1827f8ee51fa Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 3 Nov 2019 15:31:45 +0100 Subject: [PATCH] pmb.config.init: fix python 3.5 compat Don't use f-strings, as they result in invalid syntax errors for python 3.5. This was making the build.postmarketos.org CI tests fail. --- pmb/config/init.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pmb/config/init.py b/pmb/config/init.py index 3488f1e0..df4ac0f2 100644 --- a/pmb/config/init.py +++ b/pmb/config/init.py @@ -235,8 +235,9 @@ def ask_for_device(args): new_vendor = vendor not in vendors if new_vendor: - logging.info(f"The specified vendor ({vendor}) could not be found " - f"in existing ports, do you want to start a new port?") + logging.info("The specified vendor ({}) could not be found in" + " existing ports, do you want to start a new" + " port?".format(vendor)) if not pmb.helpers.cli.confirm(args, default=True): continue else: @@ -267,7 +268,7 @@ def ask_for_device(args): continue # New port creation confirmed - logging.info(f"Generating new aports for: {device}...") + logging.info("Generating new aports for: {}...".format(device)) pmb.aportgen.generate(args, "device-" + device) pmb.aportgen.generate(args, "linux-" + device) break