Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ee7156

Browse files
committed
append(): Clarify the expected type of charset.
1 parent f50d0f9 commit 6ee7156

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/email/Header.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def __unicode__(self):
151151
def append(self, s, charset=None):
152152
"""Append string s with Charset charset to the MIME header.
153153
154-
charset defaults to the one given in the class constructor.
154+
charset defaults to the one given in the class constructor. If
155+
charset is given, it should be an instance of email.Charset.Charset.
155156
"""
156157
if charset is None:
157158
charset = self._charset

0 commit comments

Comments
 (0)