]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Docs: fix docstring of `email.message.Message.add_header` (GH-134355) (#135340)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Jul 2025 10:22:39 +0000 (12:22 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Jul 2025 10:22:39 +0000 (10:22 +0000)
Docs: fix docstring of `email.message.Message.add_header` (GH-134355)
(cherry picked from commit c23eec29602eb090d6f3e854e41c22c1e2c6dfc2)

Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Lib/email/message.py

index 6b7c3a2377765a2b6748384f384313eac7357b73..f48fcd2ea925daec1fe2b1fc7923c64a82870fed 100644 (file)
@@ -564,7 +564,7 @@ class Message:
 
         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'))
         """