summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-10 08:50:32 -0400
committerTim Graham <timograham@gmail.com>2013-10-10 08:50:32 -0400
commitff9e8eccf89fc1dce441736c39dcb6e218ca8940 (patch)
treec1ae83040e336dfd6f6ab9e6790072478c7fbdca
parent9700194195735300f86803b0d023a37a89f4dff0 (diff)
Removed unnecessary semicolons.
-rw-r--r--django/utils/jslex.py4
-rw-r--r--tests/forms_tests/tests/test_forms.py2
-rw-r--r--tests/test_utils/tests.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/django/utils/jslex.py b/django/utils/jslex.py
index c465647001..c17d751faa 100644
--- a/django/utils/jslex.py
+++ b/django/utils/jslex.py
@@ -203,7 +203,7 @@ def prepare_js_for_gettext(js):
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 prepare_js_for_gettext(js):
# 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 640f48fe44..1182be3929 100644
--- a/tests/forms_tests/tests/test_forms.py
+++ b/tests/forms_tests/tests/test_forms.py
@@ -1899,7 +1899,7 @@ class FormsTestCase(TestCase):
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 eb850cc3be..94ba95455b 100644
--- a/tests/test_utils/tests.py
+++ b/tests/test_utils/tests.py
@@ -307,7 +307,7 @@ class HTMLEqualTests(TestCase):
self.assertEqual(dom[0], 'foo')
def test_parse_html_in_script(self):
- parse_html('<script>var a = "<p" + ">";</script>');
+ parse_html('<script>var a = "<p" + ">";</script>')
parse_html('''
<script>
var js_sha_link='<p>***</p>';