From 8ab2ae44045478f7ece696385f432fe83f84e4c0 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Thu, 13 Jul 2017 21:41:00 +0600 Subject: [PATCH] Removed unneeded index check in LineString._set_single() as index is already checked in __getitem__(). Unneeded since its introduction in 66e1670efae34d721e374788e4c3f8b5fe5fa481. --- django/contrib/gis/geos/linestring.py | 1 - 1 file changed, 1 deletion(-) diff --git a/django/contrib/gis/geos/linestring.py b/django/contrib/gis/geos/linestring.py index dd220d2bc3a..2b909af7b82 100644 --- a/django/contrib/gis/geos/linestring.py +++ b/django/contrib/gis/geos/linestring.py @@ -122,7 +122,6 @@ class LineString(LinearGeometryMixin, GEOSGeometry): raise GEOSException('Geometry resulting from slice deletion was invalid.') def _set_single(self, index, value): - self._checkindex(index) self._cs[index] = value def _checkdim(self, dim):