]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
trivial: Remove unnecessary whitespace
authorStephen Finucane <stephen@that.guru>
Tue, 19 Jul 2022 15:07:38 +0000 (16:07 +0100)
committerStephen Finucane <stephen@that.guru>
Sun, 2 Oct 2022 19:59:23 +0000 (20:59 +0100)
This was added when we ran black over the codebase.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/api/patch.py
patchwork/forms.py
patchwork/tests/test_parser.py
patchwork/tests/test_xmlrpc.py
patchwork/tests/views/test_about.py
patchwork/tests/views/test_bundles.py
patchwork/tests/views/test_patch.py
patchwork/views/mail.py

index 34067611432a807044c170cdf90456915f3894b6..a08c126146047261055602599774abc3192b43ec 100644 (file)
@@ -42,10 +42,10 @@ class StateField(RelatedField):
     default_error_messages = {
         'required': _('This field is required.'),
         'invalid_choice': _(
-            'Invalid state {name}. Expected one of: ' '{choices}.'
+            'Invalid state {name}. Expected one of: {choices}.'
         ),
         'incorrect_type': _(
-            'Incorrect type. Expected string value, received ' '{data_type}.'
+            'Incorrect type. Expected string value, received {data_type}.'
         ),
     }
 
index 1c5a29bee40c23ee7930a8dca763f17e429c6f4f..a60578be6b3bdcb4db0a5c71d3dd37d264f6642d 100644 (file)
@@ -40,7 +40,7 @@ class RegistrationForm(forms.Form):
         except User.DoesNotExist:
             return self.cleaned_data['username']
         raise forms.ValidationError(
-            'This username is already taken. ' 'Please choose another.'
+            'This username is already taken. Please choose another.'
         )
 
     def clean_email(self):
index b731fe78ee298f835c72459cfbd1611be7b4d7b9..1278137bfa1f2d7a9b96df7a790a0521c39f400c 100644 (file)
@@ -325,7 +325,7 @@ class SenderCorrelationTest(TestCase):
         if x_original_from:
             mail += 'X-Original-From: %s\n' % x_original_from
 
-        mail += 'Subject: Tests\n\n' 'test\n'
+        mail += 'Subject: Tests\n\ntest\n'
 
         return message_from_string(mail)
 
index 61275219ccf97c64a4f06ab402fc54622e9f39d1..dad2107b9c61ccd20d61573780d7c718f1ce581f 100644 (file)
@@ -20,7 +20,7 @@ class ServerProxy(xmlrpc_client.ServerProxy):
 
 @unittest.skipUnless(
     settings.ENABLE_XMLRPC,
-    'requires xmlrpc interface (use the ENABLE_XMLRPC ' 'setting)',
+    'requires xmlrpc interface (use the ENABLE_XMLRPC setting)',
 )
 class XMLRPCTest(LiveServerTestCase):
     def setUp(self):
@@ -51,7 +51,7 @@ class XMLRPCGenericTest(XMLRPCTest):
 
 @unittest.skipUnless(
     settings.ENABLE_XMLRPC,
-    'requires xmlrpc interface (use the ENABLE_XMLRPC ' 'setting)',
+    'requires xmlrpc interface (use the ENABLE_XMLRPC setting)',
 )
 class XMLRPCAuthenticatedTest(LiveServerTestCase):
     def setUp(self):
index e6b0a8fd0a9327787d1de845721479a5bef087eb..56605631213c60a8f1d48ee64223ec768cacefa8 100644 (file)
@@ -24,7 +24,7 @@ class AboutViewTest(TestCase):
 
     @unittest.skipUnless(
         settings.ENABLE_XMLRPC,
-        'requires xmlrpc interface (use the ENABLE_XMLRPC ' 'setting)',
+        'requires xmlrpc interface (use the ENABLE_XMLRPC setting)',
     )
     def test_redirects_xmlrpc(self):
         self._test_redirect('help-pwclient')
index b730bdf369741e8be57a1e3d1d1379aabf384582..57340fa432ab3603ed1ef6db537e4268bdb99176 100644 (file)
@@ -826,7 +826,7 @@ class BundleReorderTest(BundleTestBase):
 
 @unittest.skipUnless(
     settings.COMPAT_REDIR,
-    'requires compat redirection (use the COMPAT_REDIR ' 'setting)',
+    'requires compat redirection (use the COMPAT_REDIR setting)',
 )
 class BundleRedirTest(BundleTestBase):
     """Validate redirection of legacy URLs."""
index 70a2c8368e155e767d85e911a87c42d14bba722c..682978c5350c784a329f030d70fea1a84472bcbb 100644 (file)
@@ -145,7 +145,7 @@ class PatchListOrderingTest(TestCase):
     # [2] https://michaelsoolee.com/case-insensitive-sorting-sqlite/
     @unittest.skipIf(
         'sqlite3' in settings.DATABASES['default']['ENGINE'],
-        'The sqlite3 backend does not support case insensitive ' 'ordering',
+        'The sqlite3 backend does not support case insensitive ordering',
     )
     def test_submitter_order(self):
         url = reverse(
@@ -162,7 +162,7 @@ class PatchListOrderingTest(TestCase):
 
     @unittest.skipIf(
         'sqlite3' in settings.DATABASES['default']['ENGINE'],
-        'The sqlite3 backend does not support case insensitive ' 'ordering',
+        'The sqlite3 backend does not support case insensitive ordering',
     )
     def test_submitter_reverse_order(self):
         url = reverse(
index 8b31fc9e00aa1e552d363de01dabf980f16e0ed6..8bc3af2445fd45cbf6aac651267a44dcff2108a7 100644 (file)
@@ -78,9 +78,9 @@ def _optinout(request, action):
 
     form = EmailForm(data=request.POST)
     if not form.is_valid():
-        context['error'] = (
-            'There was an error in the form. Please review ' 'and re-submit.'
-        )
+        context[
+            'error'
+        ] = 'There was an error in the form. Please review and re-submit.'
         context['form'] = form
         return render(request, html_template, context)