bpo-38351: Modernize email examples from %-formatting to f-strings (GH-17162)

This commit is contained in:
Andrey Doroschenko 2019-11-15 12:03:47 +03:00 committed by Tal Einat
parent b44ffc8b40
commit e8acc865a3
4 changed files with 4 additions and 3 deletions

View file

@ -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