summaryrefslogtreecommitdiffstats
path: root/Doc/includes/email-simple.py
diff options
context:
space:
mode:
authorAndrey Doroschenko <dorosch.github.io@yandex.ru>2019-11-15 09:03:47 (GMT)
committerTal Einat <taleinat+github@gmail.com>2019-11-15 09:03:46 (GMT)
commite8acc865a3f112b98417f676c897ca6ec2dac2c7 (patch)
treedb2a9c6f7a4a643a64bad3a540083b5f45b02caa /Doc/includes/email-simple.py
parentb44ffc8b409fd539c5fb2b79385498e9fe168880 (diff)
downloadcpython-e8acc865a3f112b98417f676c897ca6ec2dac2c7.zip
cpython-e8acc865a3f112b98417f676c897ca6ec2dac2c7.tar.gz
cpython-e8acc865a3f112b98417f676c897ca6ec2dac2c7.tar.bz2
bpo-38351: Modernize email examples from %-formatting to f-strings (GH-17162)
Diffstat (limited to 'Doc/includes/email-simple.py')
-rw-r--r--Doc/includes/email-simple.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/email-simple.py b/Doc/includes/email-simple.py
index f69ef40..07dc30f 100644
--- a/Doc/includes/email-simple.py
+++ b/Doc/includes/email-simple.py
@@ -12,7 +12,7 @@ with open(textfile) as fp:
# me == the sender's email address
# you == the recipient's email address
-msg['Subject'] = 'The contents of %s' % textfile
+msg['Subject'] = f'The contents of {textfile}'
msg['From'] = me
msg['To'] = you