diff options
author | Barry Warsaw <barry@python.org> | 2002-07-03 05:04:04 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-07-03 05:04:04 (GMT) |
commit | 6ee7156996c85b57b8ccb7af18a2797014ea27a4 (patch) | |
tree | 6d7807a6464e1b46eba41694c4e9e5533b078115 | |
parent | f50d0f96a22c3316e023e7a1b6441baf4d54ece3 (diff) | |
download | cpython-6ee7156996c85b57b8ccb7af18a2797014ea27a4.zip cpython-6ee7156996c85b57b8ccb7af18a2797014ea27a4.tar.gz cpython-6ee7156996c85b57b8ccb7af18a2797014ea27a4.tar.bz2 |
append(): Clarify the expected type of charset.
-rw-r--r-- | Lib/email/Header.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/email/Header.py b/Lib/email/Header.py index e02ccb8..9060fbb 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 |