diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-01-03 11:27:36 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-01-03 13:36:14 +0100 |
commit | 4f9967157d97d5f01bdee81e0b9d6a1e3ed9c27d (patch) | |
tree | 903d7f7a51c993a9ea2418f2c37a6572decfad3c /rtemsspec/sphinxcontent.py | |
parent | applconfig: Changes for flake8 version 5.0.4 (diff) | |
download | rtems-central-4f9967157d97d5f01bdee81e0b9d6a1e3ed9c27d.tar.bz2 |
Changes for pylint 2.13.9
Diffstat (limited to 'rtemsspec/sphinxcontent.py')
-rw-r--r-- | rtemsspec/sphinxcontent.py | 5 |
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() |