]> granicus.if.org Git - python/commit
append(): Fixing the test for convertability after consultation with
authorBarry Warsaw <barry@python.org>
Mon, 14 Oct 2002 16:52:41 +0000 (16:52 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 14 Oct 2002 16:52:41 +0000 (16:52 +0000)
commit67f8f2fe2a93081aaac8ddc1409df4b05daf4fab
treea3adab8513c8ffa903b2ec3a6bf735f99df09f24
parent816aebdf94c7837e3d2a2d297886b5fbcbdc9406
append(): Fixing the test for convertability after consultation with
Ben.  If s is a byte string, make sure it can be converted to unicode
with the input codec, and from unicode with the output codec, or raise
a UnicodeError exception early.  Skip this test (and the unicode->byte
string conversion) when the charset is our faux 8bit raw charset.
Lib/email/Header.py