Skip to content

Commit

Permalink
Removed unused ListMixin._checkindex() correct kwarg.
Browse files Browse the repository at this point in the history
Unused since its introduction in 66e1670.
  • Loading branch information
sir-sigurd committed Jul 13, 2017
1 parent e532bf7 commit ce834d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/contrib/gis/geos/mutable_list.py
Expand Up @@ -236,11 +236,11 @@ def _rebuild(self, newLen, newItems):
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)

Expand Down

0 comments on commit ce834d0

Please sign in to comment.