mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
bpo-38351: Modernize email examples from %-formatting to f-strings (GH-17162)
This commit is contained in:
parent
b44ffc8b40
commit
e8acc865a3
4 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue