Enforce E501: Limit the line length to 79 for files in pmb/parse - part 1 (MR 2019)

Made changes to limit the line length in following files,
 - pmb/parse/_apkbuild.py
 - pmb/parse/apkindex.py
 - pmb/parse/binfmt_info.py
 - pmb/parse/deviceinfo.py
 - test/test_parse_apkbuild.py

Added the above files in E501 flake8 command list.
Substitute f-string for string concatenation.
This commit is contained in:
Shubham Naik 2021-01-31 23:46:56 +05:30 committed by Oliver Smith
parent 4474927141
commit d1fadba5b4
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
6 changed files with 64 additions and 50 deletions

View file

@ -26,8 +26,8 @@ def binfmt_info(args, arch_qemu):
for type in ["mask", "magic"]:
key = arch_qemu + "_" + type
if key not in full:
raise RuntimeError("Could not find key " + key + " in binfmt info file: " +
info)
raise RuntimeError(
f"Could not find key {key} in binfmt info file: {info}")
ret[type] = full[key]
logging.verbose("=> " + str(ret))
return ret