summaryrefslogtreecommitdiff
path: root/Cython/Compiler/MemoryView.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-07-26 09:29:13 +0200
committerStefan Behnel <stefan_ml@behnel.de>2015-07-26 09:29:13 +0200
commitdbc9f2583250bd123f33fefc69635847e1f7ae32 (patch)
tree8e987331fbdbcebba7100d5a8c8877440d0e95c1 /Cython/Compiler/MemoryView.py
parente10ef938441703fbc34ae3e7acd515eedb0bbee5 (diff)
downloadcython-dbc9f2583250bd123f33fefc69635847e1f7ae32.tar.gz
clean up some iteration code in memory views
Diffstat (limited to 'Cython/Compiler/MemoryView.py')
-rw-r--r--Cython/Compiler/MemoryView.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/MemoryView.py b/Cython/Compiler/MemoryView.py
index cbfe33ba5..e91b4804f 100644
--- a/Cython/Compiler/MemoryView.py
+++ b/Cython/Compiler/MemoryView.py
@@ -790,7 +790,7 @@ def validate_axes_specs(positions, specs, is_c_contig, is_f_contig):
if access == 'ptr':
last_indirect_dimension = idx
- for idx, pos, (access, packing) in zip(range(len(specs)), positions, specs):
+ for idx, (pos, (access, packing)) in enumerate(zip(positions, specs)):
if not (access in access_specs and
packing in packing_specs):