summaryrefslogtreecommitdiffstats
path: root/rtemsspec/sphinxcontent.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-01-03 11:27:36 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-01-03 13:36:14 +0100
commit4f9967157d97d5f01bdee81e0b9d6a1e3ed9c27d (patch)
tree903d7f7a51c993a9ea2418f2c37a6572decfad3c /rtemsspec/sphinxcontent.py
parentapplconfig: Changes for flake8 version 5.0.4 (diff)
downloadrtems-central-4f9967157d97d5f01bdee81e0b9d6a1e3ed9c27d.tar.bz2
Changes for pylint 2.13.9
Diffstat (limited to 'rtemsspec/sphinxcontent.py')
-rw-r--r--rtemsspec/sphinxcontent.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/rtemsspec/sphinxcontent.py b/rtemsspec/sphinxcontent.py
index 307bb837..1002f9ce 100644
--- a/rtemsspec/sphinxcontent.py
+++ b/rtemsspec/sphinxcontent.py
@@ -51,12 +51,11 @@ def get_label(name: str) -> str:
def _simple_sep(maxi: Iterable[int]) -> str:
- return " ".join(f"{'=' * val}" for val in maxi)
+ return " ".join(f"{'=' * width}" for width in maxi)
def _simple_row(row: Iterable[str], maxi: Iterable[int]) -> str:
- line = " ".join("{0:{width}}".format(cell, width=val)
- for cell, val in zip(row, maxi))
+ line = " ".join(f"{cell:{width}}" for cell, width in zip(row, maxi))
return line.rstrip()