From abaf880e9bacd32f86c8210ab1489330320c2113 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sat, 2 Nov 2019 01:28:20 -0400 Subject: email-print-mime-structure: nbytes should show as a decimal integer No functional changes. Signed-off-by: Daniel Kahn Gillmor --- email-print-mime-structure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'email-print-mime-structure') diff --git a/email-print-mime-structure b/email-print-mime-structure index 38dc8d9..8fc8774 100755 --- a/email-print-mime-structure +++ b/email-print-mime-structure @@ -63,7 +63,7 @@ class MimePrinter(object): raise TypeError(f'expected payload to be either str or bytes, got {type(payload)}') nbytes = len(payload) - print(f'{prefix}{z.get_content_type()}{cset}{disposition}{fname} {nbytes} bytes') + print(f'{prefix}{z.get_content_type()}{cset}{disposition}{fname} {nbytes:d} bytes') def test(self, z:Message, prefix:str='') -> None: if (z.is_multipart()): -- cgit v1.2.3