From ce834d0891fe7e60f73a524ba60b485fd2e7bd31 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Thu, 13 Jul 2017 11:34:22 +0500 Subject: [PATCH] Removed unused ListMixin._checkindex() correct kwarg. Unused since its introduction in 66e1670efae34d721e374788e4c3f8b5fe5fa481. --- django/contrib/gis/geos/mutable_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/gis/geos/mutable_list.py b/django/contrib/gis/geos/mutable_list.py index 867eee7952..e151a3cffe 100644 --- a/django/contrib/gis/geos/mutable_list.py +++ b/django/contrib/gis/geos/mutable_list.py @@ -236,11 +236,11 @@ class ListMixin: def _set_single_rebuild(self, index, value): self._set_slice(slice(index, index + 1, 1), [value]) - def _checkindex(self, index, correct=True): + def _checkindex(self, index): length = len(self) if 0 <= index < length: return index - if correct and -length <= index < 0: + if -length <= index < 0: return index + length raise IndexError('invalid index: %s' % index)