diff --git a/django/utils/jslex.py b/django/utils/jslex.py index c46564700153f..c17d751faa5f4 100644 --- a/django/utils/jslex.py +++ b/django/utils/jslex.py @@ -203,7 +203,7 @@ def escape_quotes(m): if name == 'regex': # C doesn't grok regexes, and they aren't needed for gettext, # so just output a string instead. - tok = '"REGEX"'; + tok = '"REGEX"' elif name == 'string': # C doesn't have single-quoted strings, so make all strings # double-quoted. @@ -214,6 +214,6 @@ def escape_quotes(m): # C can't deal with Unicode escapes in identifiers. We don't # need them for gettext anyway, so replace them with something # innocuous - tok = tok.replace("\\", "U"); + tok = tok.replace("\\", "U") c.append(tok) return ''.join(c) diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index 640f48fe443fa..1182be3929d58 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -1899,7 +1899,7 @@ def to_python(self, value): class JSONForm(forms.Form): json = CustomJSONField() - form = JSONForm(data={'json': '{}'}); + form = JSONForm(data={'json': '{}'}) form.full_clean() self.assertEqual(form.cleaned_data, {'json' : {}}) diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index eb850cc3be1a0..94ba95455bc47 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -307,7 +307,7 @@ def test_html_parser(self): self.assertEqual(dom[0], 'foo') def test_parse_html_in_script(self): - parse_html(''); + parse_html('') parse_html('''