Commit 3bc0d46a authored by coagulant's avatar coagulant Committed by Tim Graham
Browse files

Fixed all E261 warnings

parent 2a03a9a9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ class LineString(GEOSGeometry):
    _get_single_internal = _get_single_external

    def _set_list(self, length, items):
        ndim = self._cs.dims #
        ndim = self._cs.dims
        hasz = self._cs.hasz  # I don't understand why these are different

        # create a new coordinate sequence and populate accordingly
+3 −3
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ class LayerMapping(object):
        else:
            raise TypeError('Unique keyword argument must be set with a tuple, list, or string.')

    #### Keyword argument retrieval routines ####
    # Keyword argument retrieval routines ####
    def feature_kwargs(self, feat):
        """
        Given an OGR Feature, this will return a dictionary of keyword arguments
+7 −7
Original line number Diff line number Diff line
@@ -249,13 +249,13 @@ class HttpRequest(object):
        else:
            self._post, self._files = QueryDict('', encoding=self._encoding), MultiValueDict()

    ## File-like and iterator interface.
    ##
    ## Expects self._stream to be set to an appropriate source of bytes by
    ## a corresponding request subclass (e.g. WSGIRequest).
    ## Also when request data has already been read by request.POST or
    ## request.body, self._stream points to a BytesIO instance
    ## containing that data.
    # File-like and iterator interface.
    #
    # Expects self._stream to be set to an appropriate source of bytes by
    # a corresponding request subclass (e.g. WSGIRequest).
    # Also when request data has already been read by request.POST or
    # request.body, self._stream points to a BytesIO instance
    # containing that data.

    def read(self, *args, **kwargs):
        self._read_started = True
+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,./django/conf/app_template/*
ignore=E124,E125,E127,E128,E226,E251,E302,E501,E261,W601
ignore=E124,E125,E127,E128,E226,E251,E302,E501,W601

[metadata]
license-file = LICENSE
+5 −5
Original line number Diff line number Diff line
@@ -191,7 +191,7 @@ class CustomTimeInputFormatsTests(SimpleTestCase):
        result = f.clean('13.30.05')
        self.assertEqual(result, time(13, 30, 5))

        # # Check that the parsed result does a round trip to the same format
        # Check that the parsed result does a round trip to the same format
        text = f.widget._format_value(result)
        self.assertEqual(text, "01:30:05 PM")

@@ -385,7 +385,7 @@ class LocalizedDateTests(SimpleTestCase):
        result = f.clean('12.21.2010')
        self.assertEqual(result, date(2010, 12, 21))

        # # Check that the parsed result does a round trip to the same format
        # Check that the parsed result does a round trip to the same format
        text = f.widget._format_value(result)
        self.assertEqual(text, "21.12.2010")

@@ -478,7 +478,7 @@ class CustomDateInputFormatsTests(SimpleTestCase):
        result = f.clean('12.21.2010')
        self.assertEqual(result, date(2010, 12, 21))

        # # Check that the parsed result does a round trip to the same format
        # Check that the parsed result does a round trip to the same format
        text = f.widget._format_value(result)
        self.assertEqual(text, "21.12.2010")

@@ -671,7 +671,7 @@ class LocalizedDateTimeTests(SimpleTestCase):
        result = f.clean('13.30.05 12.21.2010')
        self.assertEqual(result, datetime(2010, 12, 21, 13, 30, 5))

        # # Check that the parsed result does a round trip to the same format
        # Check that the parsed result does a round trip to the same format
        text = f.widget._format_value(result)
        self.assertEqual(text, "21.12.2010 13:30:05")

@@ -764,7 +764,7 @@ class CustomDateTimeInputFormatsTests(SimpleTestCase):
        result = f.clean('12.21.2010 13:30:05')
        self.assertEqual(result, datetime(2010, 12, 21, 13, 30, 5))

        # # Check that the parsed result does a round trip to the same format
        # Check that the parsed result does a round trip to the same format
        text = f.widget._format_value(result)
        self.assertEqual(text, "01:30:05 PM 21/12/2010")

Loading