Skip to content

Commit 85cd458

Browse files
committed
Removed u prefixes on unicode strings.
They break Python 3.
1 parent 5d560dc commit 85cd458

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/regressiontests/localflavor/ar/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_ARDNIField(self):
8181
def test_ARCUITField(self):
8282
error_format = ['Enter a valid CUIT in XX-XXXXXXXX-X or XXXXXXXXXXXX format.']
8383
error_invalid = ['Invalid CUIT.']
84-
error_legal_type = [u'Invalid legal type. Type must be 27, 20, 23 or 30.']
84+
error_legal_type = ['Invalid legal type. Type must be 27, 20, 23 or 30.']
8585
valid = {
8686
'20-10123456-9': '20-10123456-9',
8787
'20-10123456-9': '20-10123456-9',

tests/regressiontests/utils/html.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def test_escape(self):
3636

3737
def test_format_html(self):
3838
self.assertEqual(
39-
html.format_html(u"{0} {1} {third} {fourth}",
40-
u"< Dangerous >",
41-
html.mark_safe(u"<b>safe</b>"),
39+
html.format_html("{0} {1} {third} {fourth}",
40+
"< Dangerous >",
41+
html.mark_safe("<b>safe</b>"),
4242
third="< dangerous again",
43-
fourth=html.mark_safe(u"<i>safe again</i>")
43+
fourth=html.mark_safe("<i>safe again</i>")
4444
),
45-
u"&lt; Dangerous &gt; <b>safe</b> &lt; dangerous again <i>safe again</i>"
45+
"&lt; Dangerous &gt; <b>safe</b> &lt; dangerous again <i>safe again</i>"
4646
)
4747

4848
def test_linebreaks(self):

0 commit comments

Comments
 (0)