Rip out all the u"..." literals and calls to unicode().

This commit is contained in:
Guido van Rossum 2007-05-02 19:09:54 +00:00
parent 572dbf8f13
commit ef87d6ed94
200 changed files with 18074 additions and 18074 deletions

View file

@ -35,15 +35,15 @@ class ModuleTests(unittest.TestCase):
def test_unicode_docstring(self):
# Unicode docstring
foo = ModuleType("foo", u"foodoc\u1234")
foo = ModuleType("foo", "foodoc\u1234")
self.assertEqual(foo.__name__, "foo")
self.assertEqual(foo.__doc__, u"foodoc\u1234")
self.assertEqual(foo.__doc__, "foodoc\u1234")
self.assertEqual(foo.__dict__,
{"__name__": "foo", "__doc__": u"foodoc\u1234"})
{"__name__": "foo", "__doc__": "foodoc\u1234"})
def test_reinit(self):
# Reinitialization should not replace the __dict__
foo = ModuleType("foo", u"foodoc\u1234")
foo = ModuleType("foo", "foodoc\u1234")
foo.bar = 42
d = foo.__dict__
foo.__init__("foo", "foodoc")