https://github.com/python/cpython/commit/c23eec29602eb090d6f3e854e41c22c1e2c6dfc2
commit: c23eec29602eb090d6f3e854e41c22c1e2c6dfc2
branch: main
author: Alexander Shadchin <shadc...@yandex-team.com>
committer: picnixz <10796600+picn...@users.noreply.github.com>
date: 2025-06-10T12:35:37+02:00
summary:

Docs: fix docstring of `email.message.Message.add_header` (#134355)

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 -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to