summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-11-02 01:28:20 -0400
committerSean Whitton <spwhitton@spwhitton.name>2019-11-02 08:44:19 -0700
commitabaf880e9bacd32f86c8210ab1489330320c2113 (patch)
tree99dd06838cc44d5ee1f4b6ede165f9012bcb6336
parent38e7f88f670589e1ffd61083a0f551369ba96d98 (diff)
downloadmailscripts-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-xemail-print-mime-structure2
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()):