diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-07-26 09:29:13 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-07-26 09:29:13 +0200 |
commit | dbc9f2583250bd123f33fefc69635847e1f7ae32 (patch) | |
tree | 8e987331fbdbcebba7100d5a8c8877440d0e95c1 /Cython/Compiler/MemoryView.py | |
parent | e10ef938441703fbc34ae3e7acd515eedb0bbee5 (diff) | |
download | cython-dbc9f2583250bd123f33fefc69635847e1f7ae32.tar.gz |
clean up some iteration code in memory views
Diffstat (limited to 'Cython/Compiler/MemoryView.py')
-rw-r--r-- | Cython/Compiler/MemoryView.py | 2 |
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): |