diff options
| author | Barry Warsaw <barry@python.org> | 2002-07-03 05:04:04 +0000 |
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 2002-07-03 05:04:04 +0000 |
| commit | 6ee7156996c85b57b8ccb7af18a2797014ea27a4 (patch) | |
| tree | 6d7807a6464e1b46eba41694c4e9e5533b078115 /Lib/email/Header.py | |
| parent | f50d0f96a22c3316e023e7a1b6441baf4d54ece3 (diff) | |
| download | cpython-git-6ee7156996c85b57b8ccb7af18a2797014ea27a4.tar.gz | |
append(): Clarify the expected type of charset.
Diffstat (limited to 'Lib/email/Header.py')
| -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 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 |
