From d785aa39f99720950cd7f9acfe1133494cb5ff58 Mon Sep 17 00:00:00 2001 From: Elisha Hollander Date: Wed, 7 Jul 2021 13:41:08 +0300 Subject: MAINT: Remove unused imports and unreachable code (#18762) * Remove unnecessary imports and minor fixes --- numpy/lib/index_tricks.py | 1 - 1 file changed, 1 deletion(-) (limited to 'numpy/lib/index_tricks.py') diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 5140ffa61..8d1b6e5be 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -201,7 +201,6 @@ class nd_grid: length = int(step) if step != 1: step = (key.stop-start)/float(step-1) - stop = key.stop + step return _nx.arange(0, length, 1, float)*step + start else: return _nx.arange(start, stop, step) -- cgit v1.2.1