From 025cb754169494aace84938dc6ecce24adbfc09c Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 1 Aug 2022 10:18:28 +0200 Subject: [PATCH] doc: fix some flake8 warnings --- docs/compiles_table.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/compiles_table.py b/docs/compiles_table.py index 7c8f40c43..83c98bed1 100644 --- a/docs/compiles_table.py +++ b/docs/compiles_table.py @@ -125,7 +125,7 @@ class Target(str): toolchains = toolchains.stdout.decode("utf-8").split("\n") if "installed" not in next(filter(lambda x: self in x, toolchains)): raise Exception( - f"Error: the {t} target is not installed. Please do that manually" + f"Error: the {self} target is not installed. Please do that manually" ) else: # check nightly toolchains are installed @@ -135,7 +135,7 @@ class Target(str): toolchains = toolchains.stdout.decode("utf-8").split("\n") if "installed" not in next(filter(lambda x: self in x, toolchains)): raise Exception( - f"Error: the {t} nightly target is not installed. Please do that manually" + f"Error: the {self} nightly target is not installed. Please do that manually" ) return True @@ -217,8 +217,8 @@ def merge_tables(old, new): def render_md(fd, table, headings: str, row_headings: Target): def print_row(lst, lens=[]): lens = lens + [0] * (len(lst) - len(lens)) - for e, l in zip(lst, lens): - fmt = "|{}" if l == 0 else "|{:>%s}" % len(header[0]) + for e, lmd in zip(lst, lens): + fmt = "|{}" if lmd == 0 else "|{:>%s}" % len(header[0]) fd.write(fmt.format(e)) fd.write("|\n")