From: Barry Warsaw Date: Wed, 3 Jul 2002 05:04:04 +0000 (+0000) Subject: append(): Clarify the expected type of charset. X-Git-Tag: v2.3c1~5119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ee7156996c85b57b8ccb7af18a2797014ea27a4;p=python append(): Clarify the expected type of charset. --- diff --git a/Lib/email/Header.py b/Lib/email/Header.py index e02ccb8029..9060fbba91 100644 --- a/Lib/email/Header.py +++ b/Lib/email/Header.py @@ -151,7 +151,8 @@ class Header: def append(self, s, charset=None): """Append string s with Charset charset to the MIME header. - charset defaults to the one given in the class constructor. + charset defaults to the one given in the class constructor. If + charset is given, it should be an instance of email.Charset.Charset. """ if charset is None: charset = self._charset