enforce E501 in pmb/flasher (MR 2058)

This commit is contained in:
Caio Fontes 2021-05-19 15:55:40 -03:00 committed by Oliver Smith
parent aaece05bb7
commit cfa5bc2cf7
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 37 additions and 22 deletions

View file

@ -13,11 +13,13 @@ def init(args):
method = args.deviceinfo["flash_method"]
if method not in pmb.config.flashers:
raise RuntimeError("Flash method " + method + " is not supported by the"
" current configuration. However, adding a new flash method is "
" not that hard, when the flashing application already exists.\n"
"Make sure, it is packaged for Alpine Linux, or package it "
" yourself, and then add it to pmb/config/__init__.py.")
raise RuntimeError(f"Flash method {method} is not supported by the"
" current configuration. However, adding a new"
" flash method is not that hard, when the flashing"
" application already exists.\n"
"Make sure, it is packaged for Alpine Linux, or"
" package it yourself, and then add it to"
" pmb/config/__init__.py.")
cfg = pmb.config.flashers[method]
# Install depends