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

@ -208,28 +208,28 @@ class BoolTest(unittest.TestCase):
self.assertIs("xyz".startswith("z"), False)
if test_support.have_unicode:
self.assertIs(unicode("xyz", 'ascii').endswith(unicode("z", 'ascii')), True)
self.assertIs(unicode("xyz", 'ascii').endswith(unicode("x", 'ascii')), False)
self.assertIs(unicode("xyz0123", 'ascii').isalnum(), True)
self.assertIs(unicode("@#$%", 'ascii').isalnum(), False)
self.assertIs(unicode("xyz", 'ascii').isalpha(), True)
self.assertIs(unicode("@#$%", 'ascii').isalpha(), False)
self.assertIs(unicode("0123", 'ascii').isdecimal(), True)
self.assertIs(unicode("xyz", 'ascii').isdecimal(), False)
self.assertIs(unicode("0123", 'ascii').isdigit(), True)
self.assertIs(unicode("xyz", 'ascii').isdigit(), False)
self.assertIs(unicode("xyz", 'ascii').islower(), True)
self.assertIs(unicode("XYZ", 'ascii').islower(), False)
self.assertIs(unicode("0123", 'ascii').isnumeric(), True)
self.assertIs(unicode("xyz", 'ascii').isnumeric(), False)
self.assertIs(unicode(" ", 'ascii').isspace(), True)
self.assertIs(unicode("XYZ", 'ascii').isspace(), False)
self.assertIs(unicode("X", 'ascii').istitle(), True)
self.assertIs(unicode("x", 'ascii').istitle(), False)
self.assertIs(unicode("XYZ", 'ascii').isupper(), True)
self.assertIs(unicode("xyz", 'ascii').isupper(), False)
self.assertIs(unicode("xyz", 'ascii').startswith(unicode("x", 'ascii')), True)
self.assertIs(unicode("xyz", 'ascii').startswith(unicode("z", 'ascii')), False)
self.assertIs(str("xyz", 'ascii').endswith(str("z", 'ascii')), True)
self.assertIs(str("xyz", 'ascii').endswith(str("x", 'ascii')), False)
self.assertIs(str("xyz0123", 'ascii').isalnum(), True)
self.assertIs(str("@#$%", 'ascii').isalnum(), False)
self.assertIs(str("xyz", 'ascii').isalpha(), True)
self.assertIs(str("@#$%", 'ascii').isalpha(), False)
self.assertIs(str("0123", 'ascii').isdecimal(), True)
self.assertIs(str("xyz", 'ascii').isdecimal(), False)
self.assertIs(str("0123", 'ascii').isdigit(), True)
self.assertIs(str("xyz", 'ascii').isdigit(), False)
self.assertIs(str("xyz", 'ascii').islower(), True)
self.assertIs(str("XYZ", 'ascii').islower(), False)
self.assertIs(str("0123", 'ascii').isnumeric(), True)
self.assertIs(str("xyz", 'ascii').isnumeric(), False)
self.assertIs(str(" ", 'ascii').isspace(), True)
self.assertIs(str("XYZ", 'ascii').isspace(), False)
self.assertIs(str("X", 'ascii').istitle(), True)
self.assertIs(str("x", 'ascii').istitle(), False)
self.assertIs(str("XYZ", 'ascii').isupper(), True)
self.assertIs(str("xyz", 'ascii').isupper(), False)
self.assertIs(str("xyz", 'ascii').startswith(str("x", 'ascii')), True)
self.assertIs(str("xyz", 'ascii').startswith(str("z", 'ascii')), False)
def test_boolean(self):
self.assertEqual(True & 1, 1)