mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Rip out all the u"..." literals and calls to unicode().
This commit is contained in:
parent
572dbf8f13
commit
ef87d6ed94
200 changed files with 18074 additions and 18074 deletions
|
@ -13,7 +13,7 @@ from email.Message import Message
|
|||
# We're compatible with Python 2.3, but it doesn't have the built-in Asian
|
||||
# codecs, so we have to skip all these tests.
|
||||
try:
|
||||
unicode('foo', 'euc-jp')
|
||||
str('foo', 'euc-jp')
|
||||
except LookupError:
|
||||
raise TestSkipped
|
||||
|
||||
|
@ -57,7 +57,7 @@ Hello World! =?iso-2022-jp?b?GyRCJU8lbSE8JW8hPCVrJUkhKhsoQg==?=
|
|||
jcode = 'euc-jp'
|
||||
msg = Message()
|
||||
msg.set_payload(jhello, jcode)
|
||||
ustr = unicode(msg.get_payload(), msg.get_content_charset())
|
||||
ustr = str(msg.get_payload(), msg.get_content_charset())
|
||||
self.assertEqual(jhello, ustr.encode(jcode))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue