util: lol

This commit is contained in:
Shiz 2022-01-04 01:36:28 +01:00
parent ac8d019ad7
commit 3c0d46d7bb
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def indent(s: str, count: int, start: bool = False) -> str:
return '\n'.join(lines)
def format_bytes(bs: bytes, cutoff=256) -> str:
if len(bs) > 256:
if len(bs) > cutoff:
trailer = ' ...'
bs = bs[:cutoff]
else: