summaryrefslogtreecommitdiff
path: root/Doc/includes/email-dir.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes/email-dir.py')
-rw-r--r--Doc/includes/email-dir.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/email-dir.py b/Doc/includes/email-dir.py
index 0dcfbfb402..2fc1570e65 100644
--- a/Doc/includes/email-dir.py
+++ b/Doc/includes/email-dir.py
@@ -41,7 +41,7 @@ must be running an SMTP server.
directory = '.'
# Create the message
msg = EmailMessage()
- msg['Subject'] = 'Contents of directory %s' % os.path.abspath(directory)
+ msg['Subject'] = f'Contents of directory {os.path.abspath(directory)}'
msg['To'] = ', '.join(args.recipients)
msg['From'] = args.sender
msg.preamble = 'You will not see this in a MIME-aware mail reader.\n'