https://github.com/python/cpython/commit/88d8a2e9f01011762b8a430412202e93ed708f9f
commit: 88d8a2e9f01011762b8a430412202e93ed708f9f
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: picnixz <[email protected]>
date: 2025-06-10T11:00:25Z
summary:

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

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

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

files:
M Lib/email/message.py

diff --git a/Lib/email/message.py b/Lib/email/message.py
index 87fcab68868d46..41fcc2b9778798 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