From edb08d485dc354ea2d086bfdfebc5572077b997e Mon Sep 17 00:00:00 2001 From: Steven Jones Date: Thu, 3 Feb 2022 10:53:42 -0800 Subject: [PATCH] Prevent get_coordinate_pointers from mutating input coordinates --- rtree/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtree/index.py b/rtree/index.py index 46bad6b5..a976b28e 100644 --- a/rtree/index.py +++ b/rtree/index.py @@ -343,7 +343,7 @@ def get_coordinate_pointers(self, coordinates): # it's a point make it into a bbox. [x, y] => [x, y, x, y] if len(coordinates) == dimension: - coordinates += coordinates + coordinates = *coordinates, *coordinates if len(coordinates) != dimension * 2: raise core.RTreeError(