diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-11-02 01:28:20 -0400 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-11-02 08:44:19 -0700 |
commit | abaf880e9bacd32f86c8210ab1489330320c2113 (patch) | |
tree | 99dd06838cc44d5ee1f4b6ede165f9012bcb6336 | |
parent | 38e7f88f670589e1ffd61083a0f551369ba96d98 (diff) | |
download | mailscripts-abaf880e9bacd32f86c8210ab1489330320c2113.tar.gz |
email-print-mime-structure: nbytes should show as a decimal integer
No functional changes.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
-rwxr-xr-x | email-print-mime-structure | 2 |
1 files changed, 1 insertions, 1 deletions
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()): |