mirror of
https://github.com/python/cpython.git
synced 2026-01-30 22:55:41 +00:00
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.