mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
append(): Clarify the expected type of charset.
This commit is contained in:
parent
f50d0f96a2
commit
6ee7156996
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue