https://github.com/python/cpython/commit/a09199e3ccdf4a0e8c4499d28f27c85d8ea754ac
commit: a09199e3ccdf4a0e8c4499d28f27c85d8ea754ac
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-07-03T10:22:39Z
summary:

[3.13] Docs: fix docstring of `email.message.Message.add_header` (GH-134355) 
(#135340)

Docs: fix docstring of `email.message.Message.add_header` (GH-134355)
(cherry picked from commit c23eec29602eb090d6f3e854e41c22c1e2c6dfc2)

Co-authored-by: Alexander Shadchin <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>

files:
M Lib/email/message.py

diff --git a/Lib/email/message.py b/Lib/email/message.py
index 6b7c3a2377765a..f48fcd2ea925da 100644
--- a/Lib/email/message.py
+++ b/Lib/email/message.py
@@ -564,7 +564,7 @@ def add_header(self, _name, _value, **_params):
 
         msg.add_header('content-disposition', 'attachment', filename='bud.gif')
         msg.add_header('content-disposition', 'attachment',
-                       filename=('utf-8', '', Fußballer.ppt'))
+                       filename=('utf-8', '', 'Fußballer.ppt'))
         msg.add_header('content-disposition', 'attachment',
                        filename='Fußballer.ppt'))
         """

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to