From fade3c479982ccacc00906d3b7054d84811c8f89 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 27 Feb 2022 20:06:18 +0100 Subject: [PATCH] manual formatting fixes (cosmetic / pep8) --- src/borg/archiver.py | 2 +- src/borg/helpers/parseformat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index be2b4c5c4..ebe63a16e 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -2060,7 +2060,7 @@ class Archiver: before = data[offset - context:offset] after = data[offset + len(wanted):offset + len(wanted) + context] print('{}: {} {} {} == {!r} {!r} {!r}'.format(info, before.hex(), wanted.hex(), after.hex(), - before, wanted, after)) + before, wanted, after)) wanted = args.wanted try: diff --git a/src/borg/helpers/parseformat.py b/src/borg/helpers/parseformat.py index ebbc7b526..ee32abd73 100644 --- a/src/borg/helpers/parseformat.py +++ b/src/borg/helpers/parseformat.py @@ -948,7 +948,7 @@ def ellipsis_truncate(msg, space): return '...' + ' ' * (space - ellipsis_width) if space < ellipsis_width + msg_width: return '{}...{}'.format(swidth_slice(msg, space // 2 - ellipsis_width), - swidth_slice(msg, -space // 2)) + swidth_slice(msg, -space // 2)) return msg + ' ' * (space - msg_width)