append(): Clarify the expected type of charset.

This commit is contained in:
Barry Warsaw 2002-07-03 05:04:04 +00:00
parent f50d0f96a2
commit 6ee7156996

View file

@ -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