[New-bugs-announce] [issue38351] Modernize email example from %-formatting to f-string
Mariatta
report at bugs.python.org
Wed Oct 2 12:45:36 EDT 2019
New submission from Mariatta <mariatta at python.org>:
A string was formatted with %s in the code example
https://github.com/python/cpython/blob/b3e7045f8314e7b62cd95861d207fe2f97e47198/Doc/includes/email-simple.py#L15
```
msg['Subject'] = 'The contents of %s' % textfile
```
It would be great to modernize that into fstring.
Doc can be read at: https://docs.python.org/3.7/library/email.examples.html
----------
assignee: docs at python
components: Documentation
keywords: easy, newcomer friendly
messages: 353749
nosy: Mariatta, docs at python
priority: normal
severity: normal
stage: needs patch
status: open
title: Modernize email example from %-formatting to f-string
versions: Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38351>
_______________________________________
More information about the New-bugs-announce
mailing list