pmb.flasher: fix C0303: Trailing whitespace (trailing-whitespace) (MR 2280)
************* Module pmb.flasher.run pmb/flasher/run.py:53:0: C0303: Trailing whitespace (trailing-whitespace) pmb/flasher/run.py:57:0: C0303: Trailing whitespace (trailing-whitespace) ************* Module pmb.flasher.variables pmb/flasher/variables.py:64:0: C0303: Trailing whitespace (trailing-whitespace)
This commit is contained in:
parent
4478116379
commit
b91b83afb7
|
@ -50,11 +50,11 @@ def run(args, action, flavor=None):
|
|||
" in deviceinfo file. See also:"
|
||||
" <https://wiki.postmarketos.org/wiki/"
|
||||
"Deviceinfo_reference>")
|
||||
|
||||
|
||||
if args.no_reboot and ("flash" not in action or method != "heimdall-bootimg"):
|
||||
raise RuntimeError("The '--no-reboot' option is only"
|
||||
" supported when flashing with heimall-bootimg.")
|
||||
|
||||
|
||||
if args.resume and ("flash" not in action or method != "heimdall-bootimg"):
|
||||
raise RuntimeError("The '--resume' option is only"
|
||||
" supported when flashing with heimall-bootimg.")
|
||||
|
|
|
@ -61,7 +61,7 @@ def variables(args, flavor, method):
|
|||
_dtb = ""
|
||||
if args.deviceinfo["append_dtb"] == "true":
|
||||
_dtb = "-dtb"
|
||||
|
||||
|
||||
_no_reboot = ""
|
||||
if getattr(args, 'no_reboot', False):
|
||||
_no_reboot = "--no-reboot"
|
||||
|
|
Loading…
Reference in New Issue