Removed unneeded u prefixes

This commit is contained in:
Claude Paroz 2012-06-19 17:37:28 +02:00
parent 41eb70f762
commit f08fa5b555
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ class TestNoInitialDataLoading(TransactionTestCase):
# Test presence of fixture (flush called by TransactionTestCase) # Test presence of fixture (flush called by TransactionTestCase)
self.assertQuerysetEqual( self.assertQuerysetEqual(
Book.objects.all(), [ Book.objects.all(), [
u'Achieving self-awareness of Python programs' 'Achieving self-awareness of Python programs'
], ],
lambda a: a.name lambda a: a.name
) )

View File

@ -101,7 +101,7 @@ class ModelWithStringPrimaryKey(models.Model):
return self.string_pk return self.string_pk
def get_absolute_url(self): def get_absolute_url(self):
return u'/dummy/%s/' % self.string_pk return '/dummy/%s/' % self.string_pk
class Color(models.Model): class Color(models.Model):

View File

@ -486,7 +486,7 @@ class FieldsTests(SimpleTestCase):
Refs #. Refs #.
""" """
f = RegexField('^\w+$') f = RegexField('^\w+$')
self.assertEqual(u'éèøçÎÎ你好', f.clean(u'éèøçÎÎ你好')) self.assertEqual('éèøçÎÎ你好', f.clean('éèøçÎÎ你好'))
def test_change_regex_after_init(self): def test_change_regex_after_init(self):
f = RegexField('^[a-z]+$') f = RegexField('^[a-z]+$')