Commit 2700e637 authored by Stefan Behnel's avatar Stefan Behnel

avoid modifying locals()

parent 200023c2
......@@ -320,7 +320,7 @@ class MemoryViewSliceBufferEntry(Buffer.BufferEntry):
if isinstance(index, ExprNodes.SliceNode):
# slice, unspecified dimension, or part of ellipsis
d = locals()
d = dict(locals())
for s in "start stop step".split():
idx = getattr(index, s)
have_idx = d['have_' + s] = not idx.is_none
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment