mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
Removed unnecessary semicolons.
This commit is contained in:
parent
9700194195
commit
ff9e8eccf8
@ -203,7 +203,7 @@ def prepare_js_for_gettext(js):
|
|||||||
if name == 'regex':
|
if name == 'regex':
|
||||||
# C doesn't grok regexes, and they aren't needed for gettext,
|
# C doesn't grok regexes, and they aren't needed for gettext,
|
||||||
# so just output a string instead.
|
# so just output a string instead.
|
||||||
tok = '"REGEX"';
|
tok = '"REGEX"'
|
||||||
elif name == 'string':
|
elif name == 'string':
|
||||||
# C doesn't have single-quoted strings, so make all strings
|
# C doesn't have single-quoted strings, so make all strings
|
||||||
# double-quoted.
|
# double-quoted.
|
||||||
@ -214,6 +214,6 @@ def prepare_js_for_gettext(js):
|
|||||||
# C can't deal with Unicode escapes in identifiers. We don't
|
# C can't deal with Unicode escapes in identifiers. We don't
|
||||||
# need them for gettext anyway, so replace them with something
|
# need them for gettext anyway, so replace them with something
|
||||||
# innocuous
|
# innocuous
|
||||||
tok = tok.replace("\\", "U");
|
tok = tok.replace("\\", "U")
|
||||||
c.append(tok)
|
c.append(tok)
|
||||||
return ''.join(c)
|
return ''.join(c)
|
||||||
|
@ -1899,7 +1899,7 @@ class FormsTestCase(TestCase):
|
|||||||
class JSONForm(forms.Form):
|
class JSONForm(forms.Form):
|
||||||
json = CustomJSONField()
|
json = CustomJSONField()
|
||||||
|
|
||||||
form = JSONForm(data={'json': '{}'});
|
form = JSONForm(data={'json': '{}'})
|
||||||
form.full_clean()
|
form.full_clean()
|
||||||
self.assertEqual(form.cleaned_data, {'json' : {}})
|
self.assertEqual(form.cleaned_data, {'json' : {}})
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ class HTMLEqualTests(TestCase):
|
|||||||
self.assertEqual(dom[0], 'foo')
|
self.assertEqual(dom[0], 'foo')
|
||||||
|
|
||||||
def test_parse_html_in_script(self):
|
def test_parse_html_in_script(self):
|
||||||
parse_html('<script>var a = "<p" + ">";</script>');
|
parse_html('<script>var a = "<p" + ">";</script>')
|
||||||
parse_html('''
|
parse_html('''
|
||||||
<script>
|
<script>
|
||||||
var js_sha_link='<p>***</p>';
|
var js_sha_link='<p>***</p>';
|
||||||
|
Loading…
Reference in New Issue
Block a user