manual formatting fixes (cosmetic / pep8)

This commit is contained in:
Thomas Waldmann 2022-02-27 20:06:18 +01:00
parent cbeef56454
commit fade3c4799
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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)