Commit 9d740eb8 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Fix all violators of E231

parent f2d8027c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ install-script = scripts/rpm-install.sh

[flake8]
exclude=./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./tests/comment_tests/*,./django/test/_doctest.py,./django/utils/six.py
ignore=E124,E125,E127,E128,E226,E241,E251,E302,E501,E203,E231,E261,F401,F403,W601
ignore=E124,E125,E127,E128,E226,E241,E251,E302,E501,E203,E261,F401,F403,W601

[metadata]
license-file = LICENSE
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ class FileUploadTests(TestCase):
            'Content-Disposition: form-data; name="file"; filename="test.txt"',
            'Content-Type: application/octet-stream',
            'Content-Transfer-Encoding: base64',
            '',]))
            '']))
        payload.write(b"\r\n" + base64.b64encode(force_bytes(content)) + b"\r\n")
        payload.write('--' + client.BOUNDARY + '--\r\n')
        r = {
+8 −9
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ from django.forms import (
    Textarea, TextInput, TimeInput,
)
from django.forms.widgets import RadioFieldRenderer
from django.utils import formats
from django.utils.safestring import mark_safe
from django.utils import six
from django.utils.translation import activate, deactivate, override
+3 −3
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ class SpecializedAuthorCreate(generic.CreateView):
    context_object_name = 'thingy'

    def get_success_url(self):
        return reverse('author_detail', args=[self.object.id,])
        return reverse('author_detail', args=[self.object.id])


class AuthorCreateRestricted(AuthorCreate):
@@ -151,7 +151,7 @@ class SpecializedAuthorUpdate(generic.UpdateView):
    context_object_name = 'thingy'

    def get_success_url(self):
        return reverse('author_detail', args=[self.object.id,])
        return reverse('author_detail', args=[self.object.id])


class NaiveAuthorDelete(generic.DeleteView):
+6 −6
Original line number Diff line number Diff line
@@ -439,6 +439,6 @@ class ManyToOneTests(TestCase):
                                 Article.objects.values_list,
                                 'reporter__notafield')
        self.assertRaisesMessage(FieldError,
                                 expected_message % ', '.join(['EXTRA',] + Article._meta.get_all_field_names()),
                                 expected_message % ', '.join(['EXTRA'] + Article._meta.get_all_field_names()),
                                 Article.objects.extra(select={'EXTRA': 'EXTRA_SELECT'}).values_list,
                                 'notafield')
Loading