diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-11-15 09:11:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-15 09:11:48 (GMT) |
commit | dae27cc8e72106c2eceeff9af83d1e58b2bb68d5 (patch) | |
tree | 56164ccb22afc000f7ee52af2b074106c3e859f3 /Doc/includes/email-dir.py | |
parent | 694c03fabb5cf3df0102cc317670a10fc39c6786 (diff) | |
download | cpython-dae27cc8e72106c2eceeff9af83d1e58b2bb68d5.zip cpython-dae27cc8e72106c2eceeff9af83d1e58b2bb68d5.tar.gz cpython-dae27cc8e72106c2eceeff9af83d1e58b2bb68d5.tar.bz2 |
bpo-38351: Modernize email examples from %-formatting to f-strings (GH-17162)
(cherry picked from commit e8acc865a3f112b98417f676c897ca6ec2dac2c7)
Co-authored-by: Andrey Doroschenko <dorosch.github.io@yandex.ru>
Diffstat (limited to 'Doc/includes/email-dir.py')
-rw-r--r-- | Doc/includes/email-dir.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/email-dir.py b/Doc/includes/email-dir.py index 0dcfbfb..2fc1570 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' |