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] before = data[offset - context:offset]
after = data[offset + len(wanted):offset + len(wanted) + context] after = data[offset + len(wanted):offset + len(wanted) + context]
print('{}: {} {} {} == {!r} {!r} {!r}'.format(info, before.hex(), wanted.hex(), after.hex(), print('{}: {} {} {} == {!r} {!r} {!r}'.format(info, before.hex(), wanted.hex(), after.hex(),
before, wanted, after)) before, wanted, after))
wanted = args.wanted wanted = args.wanted
try: try:

View File

@ -948,7 +948,7 @@ def ellipsis_truncate(msg, space):
return '...' + ' ' * (space - ellipsis_width) return '...' + ' ' * (space - ellipsis_width)
if space < ellipsis_width + msg_width: if space < ellipsis_width + msg_width:
return '{}...{}'.format(swidth_slice(msg, space // 2 - ellipsis_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) return msg + ' ' * (space - msg_width)