mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -216,9 +216,9 @@ class TestCase(unittest.TestCase):
|
|||
# Test a Unicode string
|
||||
if have_unicode:
|
||||
def test_iter_unicode(self):
|
||||
self.check_for_loop(iter(unicode("abcde")),
|
||||
[unicode("a"), unicode("b"), unicode("c"),
|
||||
unicode("d"), unicode("e")])
|
||||
self.check_for_loop(iter(str("abcde")),
|
||||
[str("a"), str("b"), str("c"),
|
||||
str("d"), str("e")])
|
||||
|
||||
# Test a directory
|
||||
def test_iter_dict(self):
|
||||
|
|
@ -518,7 +518,7 @@ class TestCase(unittest.TestCase):
|
|||
i = self.i
|
||||
self.i = i+1
|
||||
if i == 2:
|
||||
return unicode("fooled you!")
|
||||
return str("fooled you!")
|
||||
return next(self.it)
|
||||
|
||||
f = open(TESTFN, "w")
|
||||
|
|
@ -535,7 +535,7 @@ class TestCase(unittest.TestCase):
|
|||
# and pass that on to unicode.join().
|
||||
try:
|
||||
got = " - ".join(OhPhooey(f))
|
||||
self.assertEqual(got, unicode("a\n - b\n - fooled you! - c\n"))
|
||||
self.assertEqual(got, str("a\n - b\n - fooled you! - c\n"))
|
||||
finally:
|
||||
f.close()
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue