commit | 67f8f2fe2a93081aaac8ddc1409df4b05daf4fab | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Mon Oct 14 16:52:41 2002 +0000 |
committer | Barry Warsaw <barry@python.org> | Mon Oct 14 16:52:41 2002 +0000 |
tree | a3adab8513c8ffa903b2ec3a6bf735f99df09f24 | |
parent | 816aebdf94c7837e3d2a2d297886b5fbcbdc9406 [diff] |
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.