New submission from Mariatta <maria...@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@python components: Documentation keywords: easy, newcomer friendly messages: 353749 nosy: Mariatta, docs@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 <rep...@bugs.python.org> <https://bugs.python.org/issue38351> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com