summaryrefslogtreecommitdiff
path: root/Cython/Compiler/CythonScope.py
diff options
context:
space:
mode:
authorMark Florisson <markflorisson88@gmail.com>2011-07-20 14:06:37 +0200
committerMark Florisson <markflorisson88@gmail.com>2011-09-30 14:55:16 +0100
commit06c02d31af6daef32f152cc9d8575d53c74a53b7 (patch)
tree34e9ed9f22b1cc80002db495836974236cb0ed93 /Cython/Compiler/CythonScope.py
parent09e33cb223870e0a785518890119c68323a79d96 (diff)
downloadcython-06c02d31af6daef32f152cc9d8575d53c74a53b7.tar.gz
py23 compat
Diffstat (limited to 'Cython/Compiler/CythonScope.py')
-rw-r--r--Cython/Compiler/CythonScope.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/CythonScope.py b/Cython/Compiler/CythonScope.py
index 841a3fe7c..84205a5b5 100644
--- a/Cython/Compiler/CythonScope.py
+++ b/Cython/Compiler/CythonScope.py
@@ -346,7 +346,7 @@ cdef class array:
self.len = stride * self.itemsize
elif mode == "c":
idx = self.ndim-1; stride = itemsize
- for dim in reversed(shape):
+ for dim in shape[::-1]:
self.strides[idx] = stride
int_dim = <Py_ssize_t>dim
stride = stride * int_dim