Commit 1f735bf4 authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent 1757506c
......@@ -2704,14 +2704,8 @@ class SliceNode(ExprNode):
def compile_time_value(self, denv):
start = self.start.compile_time_value(denv)
if self.stop is None:
stop = None
else:
stop = self.stop.compile_time_value(denv)
if self.step is None:
step = None
else:
step = self.step.compile_time_value(denv)
stop = self.stop.compile_time_value(denv)
step = self.step.compile_time_value(denv)
try:
return slice(start, stop, step)
except Exception, e:
......
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